Open mattgodbolt opened 5 years ago
Hello @mattgodbolt thanks for reply, I'm author of letter. I believe all we need is to add apple Foundation headers and precompiled lib on server side :)
Actual error you got when trying to import foundation is <source>:1:9: fatal error: 'Foundation/Foundation.h' file not found
, If you have Foundation framework loaded on server, this answer must be helpful https://stackoverflow.com/a/16387905
This is not easy job, but can be done, thanks to number of open source projects. Apple has open sourced ObjC, CoreFoundation lite and dispatch library (GDC), those libraries has system dependencies. To get Foundation part, apportable's implementation can be used, which is actually implemented very close to original iOS Foundation. For great surprise this all done with Darling project. They already reuse original ObjC, CF and apportable's Foundation. I believe that it can be stripped down to required minimum.
I wonder if we should add Objective-C as a separate language, would be easier to tailor these kind of things into it. But since you can mix in C++, that would mean we'd have to add and maintain all the other libraries as well.
Maybe including gnustep may be enough?
Is this still complex?
Received over email:
Have asked for help from the OP.