Cross-Compiling for OS X on Linux or Windows
Cross-compiling allows you to compile code on one operating system to run on another. This can be useful for developing software for platforms you don't have access to natively.
Compiling for OS X
To compile for OS X on Linux or Windows, you can use the following tools:
Linux
-
GCC cross-compiler: A prebuilt GCC cross-compiler is available for Linux, based on Apple's modified GCC sources.
- [Cross-Apple](https://launchpad.net/~flosoft/ archive/cross-apple)
Alternatives
-
Visual Studio 2015: Industry-standard IDE that now supports OSX/iOS/Android.
- [http://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/311](http://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/311)
-
RadStudio: Embarcadero's IDE also supports building OSX/iOS/Android apps on Windows.
-
Thomas' cross-compilation tool: [https://stackoverflow.com/questions/19955764/how-to-compile-for-os-x-in-linux-or-windows-1](https://stackoverflow.com/questions/19955764/how-to-compile-for-os-x-in-linux-or-windows-1)
Note
Regardless of the method used, testing the application on a physical Mac or iOS device is still necessary.
The above is the detailed content of How to Cross-Compile for OS X on Linux or Windows?. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn