Obviously, the build machine has to be an OSX machine with XCode developer tools installed.
Add the XCode build step to a free-style project and set the target (e.g. MyApp), configuration (e.g. Release) and check the build IPA and update version number options. This will give you a single, versioned .ipa file. You can also select to clean the project before a build; while this will make sure that the project is starting from a clean state, it will make large projects take a lot longer.
Add the XCode build step and this time specify your unit test target (e.g. MyAppTests), configuration (e.g. Debug) and the SDK (e.g. Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/).
When code-signing, a prompt may appear on the build machine asking whether to allow keychain access.
If this prompt is not showing on the build machine, you can force it to appear by running the codesign command that failed from a terminal on the build machine: /usr/bin/codesign --force --sign "iPhone Distribution: .....
You probably just installed XCode (by default it is in /Developer) but its path isn't configured. You can fix it with
You should now be able to execute xcodebuild. Ex :
XCode 4.3 changes 2 things that are important for our usage on a slave or a master :
Skip to end of metadata Go to start of metadata