What does HackerNews think of osxcross?

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)

Language: C++

Technically it's possible, but possibly not legal:

https://github.com/tpoechtrager/osxcross

> Please ensure you have read and understood the Xcode license terms before continuing.

According to the EULA you may only use the SDK on Apple-branded computers. But you can use Linux to cross compile to Apple.

Do the Visual Studio build tools have more permissive license terms? AFAIK you can have clang-cl on Linux, but you do need a lot of the SDK for it to be useful. No experience there.

This is actually a solved problem, using osxcross[0]. The experience is honestly very smooth, and we don't require any apple proprietary binaries. The only thing apple-proprietary is their SDK (containing the header files for compiling, and tbd files for linking), which can be downloaded from apple's website (at least if you have a developer account), or from various GitHub projects archiving them.

[0]: https://github.com/tpoechtrager/osxcross

> 1. No cross platform builds allowed. We can compile to Windows, Linux, Android, Switch, PS4, Xbox One all from one windows build machine.

I build for OSX from Linux using clang all the time. You just need to grab the sdk from xcode and get your toolchain all setup.

https://github.com/tpoechtrager/osxcross

This toolchain can build C, C++ and Rust programs for macOS on Linux and FreeBSD. You'd need an Apple developer account to download the SDK.

https://github.com/tpoechtrager/osxcross

https://github.com/tpoechtrager/osxcross/

It may not be a viable solution for every project, but it does work for many.

> https://github.com/tpoechtrager/osxcross for the compiler and libraries.

yes, I know osxcrooss but it is not legal to use if you aren't developing on apple hardware which makes it a bit cumbersome. Grep for "Authorized Test Units" in the xcode license linked in the repo.

It literally says (section 2.2, Permitted Uses and Restrictions):

"Install a reasonable number of copies of the Apple Software on Apple-branded computers"