

Unable to build iOS project using command line but fine via Xcode interface. 1 Running xcodebuild twice from a Cocoa app (via NSTask) silently fails. Then build.cfg just has the vars above in them: #!/bin/shĮxport XCODE_BUILD_CODE_SIGN_AUTHORITY="iPhone Distribution: ABC"Įxport XCODE_ARCHIVE_OUTPUT_IPA_FILENAME="demo.ipa"Įxport XCODE_ARCHIVE_OUTPUT_IPA_DIR="build/release"Įxport XCODE_ARCHIVE_PROVISIONING_CERTIFICATE="demo_adhoc. Cannot build XCode project from command line but can from XCode. We do this for our unit test suite target, and we use GHUnit.

Look at the man page for xcodebuild for more options. In the following sheets, fill out the forms and choose options to configure your project. In the sheet that appears, select the target operating system or platform and a template under Application. There is a bunch else I have but that is the key part. To build your xcode project from the command line using a bash script use: /usr/bin/xcodebuild -target TargetYouWantToBuild -configuration Debug. Launch Xcode, then click Create a new Xcode project in the Welcome to Xcode window or choose File > New > Project. Then, what I use is a simple shell script: #!/bin/sh Make sure you've installed The XCode command line tools (via XCode preferences).
