Host a file server from iOS app

For some reasons it is required to send binary files from iOS app to MacOS Command line tool (CLT) app for the computation of data and also send back the computed results from maxOS CLT app to the iOS app.

a) what is preferred way (using tools & framework from apple)? b) If it's not easy to achieve this using apple tools and frameworks; will "Vapor" be useful for this task?

Host a file server from iOS app
 
 
Q