Alright, I'm curious about the build process with Xcode. Setting up multiple Targets, how to automate versioning and generally understanding the system so I can manipulate it to do what I want.
Does anyone have any books or can point me to some documentation somewhere so that I can figure all of this out?
Thanks a ton.
Another thing, if anyone actually sees this since changing it.
But any books anyone is aware of that will focus on Xcode 4? There's Xcode 3 Unleashed but I'd be real curious if there are any books that focus heavily on Xcode 4.
The Xcode build system manages the tools that transform your code and resource files into a finished app. When you tell Xcode to build your project, the build system analyzes your files and uses your project settings to assemble the set of tasks to perform.
Launch Xcode, then click “Create a new Xcode project” in the Welcome to Xcode window or choose File > New > Project. In the sheet that appears, select the target operating system or platform and a template under Application. In the following sheets, fill out the forms and choose options to configure your project.
The powerful open-source LLVM compiler for C, C++, and Objective-C is built into Xcode and available from Terminal. With it, your code compiles quickly, and is optimized by Apple to produce blazing-fast apps specifically tuned for the CPUs in iPhone, iPad, and Mac.
One thing that is really essential for consistent, reproducible, automatable builds is knowledge of the xcodebuild
command. Sadly I can't find any official docs on it apart from the manpage (type man xcodebuild
). There's a useful guide to automating iphone builds here that includes building with xcodebuild
and versioning with agvtool
. This is just as relevant to general building of Mac apps.
Generally building with xcodebuild is very simple:
cd project_dir
xcodebuild -project myproject.xcodeproj -configuration Release ARCHS="x86_64 i386" build
Once you can build from a script like this it's very easy to slot into an automated build system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With