Home >Backend Development >C++ >Can I Cross-Compile for OS X on Linux or Windows Without a Mac?
Cross-Compiling for OS X on Linux or Windows
If you wish to port your C/C applications to OS X but lack a Mac, several cross-compilation tools can assist you.
Linux:
For Linux, a prebuilt GCC cross-compiler is available, utilizing modified GCC sources from Apple. You can obtain this compiler from:
https://launchpad.net/~flosoft/ archive/cross-apple
Alternative Options:
Since the original answer was written in 2015, the following additional options have emerged:
Note:
Regardless of the cross-compilation method you choose, you will still require a physical Mac or iOS device for testing your applications.
The above is the detailed content of Can I Cross-Compile for OS X on Linux or Windows Without a Mac?. For more information, please follow other related articles on the PHP Chinese website!