[英]What's the best way to find out the installed version of the iPhone SDK?
What is the easiest way of finding out what version of the iPhone SDK is installed on my OS X? 找出我的OS X上安装了哪个版本的iPhone SDK的最简单方法是什么?
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. 当您登录Apple的iPhone开发人员中心时,您可以看到当前可用版本的SDK的内部版本号,但您必须记住是否已经下载了该版本。
What is the easiest way of staying current? 保持最新状态的最简单方法是什么?
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.
检查已安装的iPhone SDK版本的最佳位置是使用System Profiler。
Apple Menu > About this Mac > More Info... > Software > Developer
Apple菜单>关于本机>更多信息...>软件>开发人员
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.
顶级版本和内部版本号对应于从Apple下载的磁盘映像的名称。
This works in Snow Leopard, but apparently not in Leopard.
这适用于Snow Leopard,但显然不适用于Leopard。 I don't know of a singularly useful equivalent in Leopard.
我不知道Leopard中有一个非常有用的等价物。 Consider upgrading :)
考虑升级:)
In general, you get the version number for any SDK from the CoreServices/SystemVersion plist file: 通常,您从CoreServices / SystemVersion plist文件中获取任何SDK的版本号:
$Developer /Platforms/ $Platform .platform/Developer/SDKs/ $SDK .sdk/System/Library/CoreServices/SystemVersion.plist. $ Developer / Platforms / $ Platform .platform / Developer / SDKs / $ SDK .sdk / System / Library / CoreServices / SystemVersion.plist。
You should see an entry for the ProductBuildVersion. 您应该看到ProductBuildVersion的条目。
您可以随时查看/ Developer下名为“About iPhone SDK.pdf”的文件。
Use xcrun. 使用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. 检查
xcrun --help
了解您可能感兴趣的其他选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.