Creation with xcodebuild Waiting periods <IDEWorkspace, 0x2004cebc0> / "runContextManager.runContexts"
I am setting up my iphone project to run using hudson, my build script works fine locally, but when I run the following command on my Mac snow leopard server
xcodebuild -sdk iphoneos4.3 -workspace Moments.xcworkspace/ -scheme Moments -configuration DistributionTest I get the following error messages.
Set the parameters from the command line: SDKROOT = iphoneos4.3
2011-05-11 10: 32: 17.729 xcodebuild [4151: 903] WARNING: timeout //rurunContextManager.runContexts "(10.010780 seconds) xcodebuild: error: The workspace" Moments.xcworkspace / "does not contain a circuit named" Moments " .
What time out ?! And why can't he find a scheme called βMomentsβ when it definitely exists. If I open the workspace in xcode on the build server, I will see the diagram.
checking the "general" field in the Schema Management dialog box moves the schemes to Project.xcodeproj / xcshareddata / xcschemes / Scheme.xcscheme
so even if you have a clean check that never opened through xcode ui, this will work. we use this so that buildbot can create our applications

Unfortunately, xcodebuild depends on some user files created by Xcode. To fix this, you can log in as a hudson user and run the Xcode interface once. This will create the necessary files.
I am currently trying to get around this, but copying the necessary files to the source tree before building.
If you run xcodebuild and Xcode is running in the background, xcodebuild will contact Xcode to get the necessary data. Since Xcode is not working, you get a timeout.
Schemas are not shared by default between users (and your build server). As David mentions , you can share it, but you can also just reference targets that are shared.
So instead
xcodebuild -scheme Foobar This will
xcodebuild -target Foobar as circuits are usually called the same as the target.