Home >Backend Development >C++ >Can I Cross-Compile for OS X on Linux or Windows Without a Mac?

Can I Cross-Compile for OS X on Linux or Windows Without a Mac?

Barbara Streisand
Barbara StreisandOriginal
2024-11-01 07:53:02417browse

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:

  • Visual Studio: Microsoft's industry-standard IDE now supports cross-compilation for OS X, iOS, and Android. (https://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/311)
  • Embarcadero's RadStudio: This IDE also enables the development of OS X, iOS, and Android apps on Windows.
  • Cross-compilation tool from Thomas (mentioned in the original answer): https://stackoverflow.com/users/150586/thomas

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!

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