简体   繁体   English

找出已安装的iPhone SDK版本的最佳方法是什么?

[英]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.

相关问题 在iPhone上找到用户的Documents目录的最佳方法是什么? - What's the best way to find the user's Documents directory on an iPhone? 在iPhone上存储数据的最佳方法是什么? - What's the best way to store data on iPhone? 捆绑我的iOS SDK的最佳方法是什么? - What's the best way to bundle my iOS SDK? 在Swift中识别iPhone UID的最佳方法是什么? - What's the best way to identify an iPhone UID in Swift? 在iPhone中创建供稿页面的最佳方法是什么? - What's the best way to create a feed page in iPhone? 允许用户在iPhone上加载其历史记录的最佳方法是什么? - What's the best way to allow users to load their history on iPhone? 在运行时获取特定 CocoaPod 版本的最佳方法是什么? - What is the best way to get a specific CocoaPod's version at runtime? 处理版本控制系统和xcode故事板的最佳方法是什么? - What's the best way to deal with version control system and xcode storyboards? 在MapKit中缩小和拟合所有注释的最佳方法是什么 - What's the best way to zoom out and fit all annotations in MapKit 在哪里可以找到苹果目前接受分发的SDK的确切版本? - Where can I find out which exact version(s) of the SDK apple is currently accepting for distribution?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM