I'm sure this is simple, but how do I determine which version of the iOS SDK I currently have installed?
我确信这很简单,但如何确定我目前安装的iOS SDK版本?
4 个解决方案
#1
80
If you type this:
如果你输入:
$> xcodebuild -showsdks
it gives something like this:
它给出了这样的东西:
$> OS X SDKs:
OS X 10.8 -sdk macosx10.8
OS X 10.9 -sdk macosx10.9
iOS SDKs:
iOS 6.1 -sdk iphoneos6.1
iOS 7.0 -sdk iphoneos7.0
iOS Simulator SDKs:
Simulator - iOS 6.0 -sdk iphonesimulator6.0
Simulator - iOS 6.1 -sdk iphonesimulator6.1
Simulator - iOS 7.0 -sdk iphonesimulator7.0
#2
32
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. I don't know of a singularly useful equivalent in Leopard. Consider upgrading :)
这适用于Snow Leopard,但显然不适用于Leopard。我不知道Leopard中有一个非常有用的等价物。考虑升级:)
#3
10
Update: Thanks to Stan for showing how to do it with Xcode 4.3 on Lion:
更新:感谢Stan在Lion上展示了如何使用Xcode 4.3:
ls /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
The following command shows a listing of all the iPhone SDKs installed on your computer.
以下命令显示计算机上安装的所有iPhone SDK的列表。
ls /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
#4
8
For latest version of MAC OS Mountain lion:
最新版本的MAC OS Mountain lion:
Apple Menu > About this Mac > More Info... > System Report... > Software > Developer
Apple菜单>关于本机>更多信息...>系统报告...>软件>开发人员
You will find Developer information like this:
你会发现像这样的开发者信息:
Version: 4.6 (4H127) Location: /Applications/Xcode.app Applications: Xcode: 4.6 (2066) Instruments: 4.6 (46000) SDKs: OS X: 10.7: (11E52) 10.8: (12C37) iOS: 6.1: (10B141) iOS Simulator: 6.1: (10B141)
版本:4.6(4H127)位置:/Applications/Xcode.app应用程序:Xcode:4.6(2066)仪器:4.6(46000)SDK:OS X:10.7:(11E52)10.8:(12C37)iOS:6.1:(10B141) iOS模拟器:6.1:(10B141)
#1
80
If you type this:
如果你输入:
$> xcodebuild -showsdks
it gives something like this:
它给出了这样的东西:
$> OS X SDKs:
OS X 10.8 -sdk macosx10.8
OS X 10.9 -sdk macosx10.9
iOS SDKs:
iOS 6.1 -sdk iphoneos6.1
iOS 7.0 -sdk iphoneos7.0
iOS Simulator SDKs:
Simulator - iOS 6.0 -sdk iphonesimulator6.0
Simulator - iOS 6.1 -sdk iphonesimulator6.1
Simulator - iOS 7.0 -sdk iphonesimulator7.0
#2
32
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. I don't know of a singularly useful equivalent in Leopard. Consider upgrading :)
这适用于Snow Leopard,但显然不适用于Leopard。我不知道Leopard中有一个非常有用的等价物。考虑升级:)
#3
10
Update: Thanks to Stan for showing how to do it with Xcode 4.3 on Lion:
更新:感谢Stan在Lion上展示了如何使用Xcode 4.3:
ls /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
The following command shows a listing of all the iPhone SDKs installed on your computer.
以下命令显示计算机上安装的所有iPhone SDK的列表。
ls /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
#4
8
For latest version of MAC OS Mountain lion:
最新版本的MAC OS Mountain lion:
Apple Menu > About this Mac > More Info... > System Report... > Software > Developer
Apple菜单>关于本机>更多信息...>系统报告...>软件>开发人员
You will find Developer information like this:
你会发现像这样的开发者信息:
Version: 4.6 (4H127) Location: /Applications/Xcode.app Applications: Xcode: 4.6 (2066) Instruments: 4.6 (46000) SDKs: OS X: 10.7: (11E52) 10.8: (12C37) iOS: 6.1: (10B141) iOS Simulator: 6.1: (10B141)
版本:4.6(4H127)位置:/Applications/Xcode.app应用程序:Xcode:4.6(2066)仪器:4.6(46000)SDK:OS X:10.7:(11E52)10.8:(12C37)iOS:6.1:(10B141) iOS模拟器:6.1:(10B141)