Xcode Project
Since TeamCity 7.1 Xcode Project runner comes bundled with TeamCity. If you want to use it with TeamCity 7.0, you can install it as a Xcode Runner. Xcode Project runner supports both Xcode 3 (target-based build) and Xcode 4 (scheme-based build), provides structured build log based on Xcode build stages, detects compilation errors, reports tests from "xcodebuild", adds automatic agent requirements for appropriate version of tools installed (Xcode, SDKs, etc.) and reporting tools via agent properties. To run an Xcode build you should have one or more build agents running Mac OS X with installed Xcode 3 or 4.
Xcode Project Runner Settings
Setting | Build | Description |
---|---|---|
Path to the project file ( | ||
Working directory | Specify the Build Working Directory. | |
Select either target-based or scheme-based (for Xcode 4+ only) build. | ||
Scheme-based | Xcode scheme to build. List of available schemes is formed by parsing your project/workspace files in VCS. Press "Check/Reparse Project" button to show/refresh schemes list (make sure your "Path to the project or workspace" setting is correct before). Please note that scheme must be shared to be shown in the list (to check if your scheme is shared you should check if it is located under "xcshareddata" folder and not under "xcuserdata" one, and if "xcshareddata" folder is committed to your VCS; to check the latter you can use VCS tree popup near the "Path to the project or workspace" field). To know more about managing Xcode schemes please see Apple documentation. | |
Scheme-based | You can override the default path for the files produced in your build. To do it check "Use custom" checkbox and specify the path in the text field. Path should be relative to the checkout directory. | |
Target-based | Xcode target to execute. List of available targets is formed by parsing your project files in VCS. Press "Check/Reparse Project" button to show/refresh targets list (make sure your "Path to the project" setting is correct before). | |
Target-based | Xcode configuration. List of available configurations is formed by parsing your project files in VCS. Since configuration depends on the target, you must choose the target first. Press "Check/Reparse Project" button to show/refresh configurations list (make sure your "Path to the project" setting is correct before). | |
Target-based | You can choose either "iOS" or "Mac OS X" or "Simulator - iOS" or any other platform (if it is provided by agent) to build your project on. | |
Target-based | You can choose SDK to build your project with (list of available SDKs is formed according to the SDKs those are available on your agents). Since SDK depends on the platform, you must choose the platform first. | |
Target-based | You can choose architecture to build your project with (list of available architectures is formed according to the architectures those are available on your agents). Since architecture depends on the platform, you must choose the platform first. | |
Xcode build action(s). Default actions are "clean build", but you can specify any of "clean", "build", "test", "archive", "installsrc", "install" in any order. | ||
Uncheck this option if you just want to build your project and do not want to run tests. | ||
Any other command line parameters to be passed to "xcodebuild" utility. |