3

What is the easiest way of finding out what version of the iPhone SDK is installed on my OS X?

When you log into the Apple's iPhone Developer Center, you can see the build number of the current available version of the SDK, but you have to remember if you have already downloaded that version or not.

What is the easiest way of staying current?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Sergio Acosta
  • 11,418
  • 12
  • 62
  • 91

4 Answers4

5

This is a cross post from this question.

The best place to check which version of the iPhone SDK you have installed is to use System Profiler.

Apple Menu > About this Mac > More Info... > Software > Developer

Once there, you'll see version and build numbers for all of the major components of the Developer Tools. The top level version and build number corresponds to the name of the disk image you downloaded from Apple.

This works in Snow Leopard, but apparently not in Leopard. I don't know of a singularly useful equivalent in Leopard. Consider upgrading :)

Community
  • 1
  • 1
Jason Medeiros
  • 5,358
  • 3
  • 25
  • 18
  • Thanks! I marked this as accepted considering Snow Leopard will be the most common platform for Mac developers in the future. – Sergio Acosta Oct 27 '09 at 23:34
2

In general, you get the version number for any SDK from the CoreServices/SystemVersion plist file:

$Developer/Platforms/$Platform.platform/Developer/SDKs/$SDK.sdk/System/Library/CoreServices/SystemVersion.plist.

You should see an entry for the ProductBuildVersion.

mmalc
  • 8,201
  • 3
  • 39
  • 39
  • This number doesn't help when deciding to grab the latest dmg from developer.apple.com. System Profiler > Software > Developer in Snow Leopard gives you all the information you need. – Jason Medeiros Oct 26 '09 at 20:57
0

You can always take a look at the file named "About iPhone SDK.pdf" under /Developer ...

  • Thanks for the answer. After your suggestion I read that document and, although it talks about the version of XCode included in the SDK (in this case the 3.1), there is no information on what SDK build number is installed. – Sergio Acosta Oct 07 '08 at 05:57
  • In Snow Leopard, try System Profiler > Software > Developer. – Jason Medeiros Oct 26 '09 at 20:57
0

Use xcrun.

Examples:

$ xcrun --sdk iphoneos --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk

$  xcrun --sdk iphoneos --show-sdk-platform-version
11.0

$ xcrun --sdk iphoneos --show-sdk-build-version
15A372

Check xcrun --help for other options you might be interested in.

greymouser
  • 3,133
  • 19
  • 22