parameter for xcodebuild for using latest sdk.

Solution 1:

You can use xcodebuild with the latest SDK using :

  • xcodebuild -sdk iphoneos, for Device
  • xcodebuild -sdk iphonesimulator, for Simulator.

We use these options for our automated builds and it's been working since XCode 3.2.5

Solution 2:

I believe you can use xcodebuild -sdk iphoneos (no version number) to accomplish this.

Solution 3:

I tried @jenningj 's solution and it worked for me. Maciek Sawicki, if this works for you, you should mark it as the right solution.

Also, xcodebuild -showsdk should be xcodebuild -showsdks.