Cross-Compiling for OS X from Linux or Windows
Compiling code for OS X outside of a Mac environment can be a challenge. Fortunately, several tools and solutions can facilitate this process for those working in Linux or Windows.
Linux
For Linux users, there is a prebuilt GCC cross-compiler available, based on publicly accessible Apple's modified GCC sources:
https://launchpad.net/~flosoft/ archive/cross-apple
Windows
In addition to Linux, other options exist for cross-compiling for OS X from Windows:
http://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/311
Note:
Regardless of the method or tool used, it's important to note that a physical Mac or i-device is still required to test the compiled applications.
The above is the detailed content of How can I compile code for OS X from Linux or Windows?. For more information, please follow other related articles on the PHP Chinese website!