Reputation: 11440
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?
Upvotes: 3
Views: 5933
Reputation: 3181
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.
Upvotes: 0
Reputation: 5428
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 :)
Upvotes: 5
Reputation: 8161
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.
Upvotes: 2