I want to run a WebServer on iOS. The Server has a REST-API I want to access with a different app. I am aware that there are swift-frameworks for that goal (like Vapor), although most of them are unmanaged or deprecated (e.g. GCDWebServer, CocoaHTTPServer).
I know that it is possible to include c/c++-code in a swift application, but are there limitations on what functionality is allowed/usable? Would it be possible to run a web server with this c++-component, or is it necessary to use swift and one of the mentioned frameworks?
If it is possible on a technical level, would it violate the requirements of the AppStore?