Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild command tool without installing Xcode itself

I need to build a Xcode project in an automated process on a machine that will not be making any development. I also want to save disk space on that machine.

I thought the xcodebuild command line would be perfect for that. But to install that tool, you need to install Xcode itself. Is there a way to install only xcodebuild and other dependencies?

I tried to install this package, it does include xcodebuild, but other dependencies seems missing.

like image 971
gcamp Avatar asked Dec 07 '11 14:12

gcamp


1 Answers

Now that Apple has a CLI only install, that's probably the best way to go.

Old answer below.


You need some files missing.

  • Install this to install GCC and LLVM
  • Copy these files from an existing Xcode installation or from the installer :
    • Everything in /Developer/Library/
    • Everything in /Developer/usr/
    • The platform you need (iOS or MacOSX) in /Developer/Platforms/
    • The SDK your building against in /Developer/SDKs/

That's it! Enjoy your minimalist Xcode install.

like image 125
gcamp Avatar answered Oct 15 '22 07:10

gcamp