Is it possible to use xcodebuild on linux?

Joshua picture Joshua · Jun 28, 2012 · Viewed 12.7k times · Source

Say I've got an Xcode project on a linux machine and I want to, like I can do on the Mac, install & use xcodebuild to simply compile the project, not to run it or anything fancy, just simply to compile it to check for errors.

Is it possible to install xcodebuild on a Linux machine or is it entirely out of the question, if so what are my alternatives?

Answer

user529758 picture user529758 · Jun 28, 2012

You can't use the standard Apple developer tools on Linux, because they're compiled for Mac OS X.

If you're compiling for iOS, you can, however, build an opensource iOS toolchain for linux and use it for compiling your app. You'll need a jailbroken device to upload the binary, though.

If you're working with a normal OS X application, then, provided you have the necessary libraries and frameworks, you can build the project for Linux using make.