如何更新iPhone SDK而无需重新下载Xcode?

时间:2020-12-30 10:43:18

Silly question - Is there a way to download the iPhone SDK without Xcode when Apple releases an update?

愚蠢的问题 - 当Apple发布更新时,有没有办法在没有Xcode的情况下下载iPhone SDK?

5 个解决方案

#1


30  

As far as I understand you cannot download the SDK separately - and even if you could, I wouldn't recommend it. Using the bundled SDK+Xcode release is the best idea in my opinion, as it will be working for you out of the box. I know it's annoying having to download such a large amount of data for an SDK (not all of us have 100mbps pipes to play with!) but for ease of development, it's the way I'd recommend you go.

据我所知,你不能单独下载SDK - 即使你可以,我也不推荐它。在我看来,使用捆绑的SDK + Xcode版本是最好的想法,因为它将为您提供开箱即用的功能。我知道为SDK下载如此大量的数据很烦人(我们并不是所有人都有100mbps的管道!)但是为了便于开发,这是我建议你去的方式。

#2


11  

For those who have installed Xcode but do not have the iOS SDK, here is the way to download it without re-downloading Xcode:Got to

对于已安装Xcode但没有iOS SDK的用户,可以在不重新下载Xcode的情况下下载它:下载

Xcode > Preferences > Downloads

Xcode>首选项>下载

and select whatever you want to install.

并选择您要安装的任何内容。

#3


7  

Yes, contrary to what others say this is somewhat possible.

是的,与其他人说的相反,这有点可能。

Method One

With this method you can download any iOS or OSX SDK and install it to XCode.Download the desired SDK, bundled with XCode, from developer.apple.com/downloads

使用此方法,您可以下载任何iOS或OSX SDK并将其安装到XCode。从developer.apple.com/downloads下载与XCode捆绑在一起的所需SDK。

如何更新iPhone SDK而无需重新下载Xcode?

Once the package is done downloading mount the disk image. Right on the XCode application in the image and click on Show Package Contents. Navigate to:

完成包后,下载安装磁盘映像。在图像中的XCode应用程序上,然后单击“显示包内容”。导航:

/Contents/Developer/Platforms/

the iOS SDKs are in:

iOS SDK位于:

iPhoneOS.platform/Developer/SDKs/ 如何更新iPhone SDK而无需重新下载Xcode?

the OSX SDKs are in:

OSX SDK位于:

MacOSX.platform/Developer/SDKs/

and the iOS simulator SDKs are in:

iOS模拟器SDK位于:

iPhoneSimulator.platform/Developer/SDKs/

To install one of the SDKs simply find XCode.app and place the SDK in the appropriate folder of the XCode.app package.

要安装其中一个SDK,只需找到XCode.app并将SDK放在XCode.app包的相应文件夹中。

Method Two

With this method you can only dowload iOS simulators and iOS simulator SDKs.

使用此方法,您只能下载iOS模拟器和iOS模拟器SDK。

Open XCode and in the menu bar click on XCode > Preferences. In the preferences dialog select the downloads tab and select the simulators you would like to dowload.

打开XCode,在菜单栏中单击XCode> Preferences。在首选项对话框中,选择下载选项卡,然后选择要下载的模拟器。

如何更新iPhone SDK而无需重新下载Xcode?

#4


6  

Unfortunately, no. Apple only provides the SDK as a bundled package.

很不幸的是,不行。 Apple仅将SDK作为捆绑包提供。

#5


2  

They quite often include fixes and updates in the bundled version of xcode. I guess this is a good way for them to "force" people to use the latest point release of xcode.

它们经常包含xcode捆绑版本中的修复和更新。我想这是他们“强迫”人们使用xcode最新版本的好方法。

#1


30  

As far as I understand you cannot download the SDK separately - and even if you could, I wouldn't recommend it. Using the bundled SDK+Xcode release is the best idea in my opinion, as it will be working for you out of the box. I know it's annoying having to download such a large amount of data for an SDK (not all of us have 100mbps pipes to play with!) but for ease of development, it's the way I'd recommend you go.

据我所知,你不能单独下载SDK - 即使你可以,我也不推荐它。在我看来,使用捆绑的SDK + Xcode版本是最好的想法,因为它将为您提供开箱即用的功能。我知道为SDK下载如此大量的数据很烦人(我们并不是所有人都有100mbps的管道!)但是为了便于开发,这是我建议你去的方式。

#2


11  

For those who have installed Xcode but do not have the iOS SDK, here is the way to download it without re-downloading Xcode:Got to

对于已安装Xcode但没有iOS SDK的用户,可以在不重新下载Xcode的情况下下载它:下载

Xcode > Preferences > Downloads

Xcode>首选项>下载

and select whatever you want to install.

并选择您要安装的任何内容。

#3


7  

Yes, contrary to what others say this is somewhat possible.

是的,与其他人说的相反,这有点可能。

Method One

With this method you can download any iOS or OSX SDK and install it to XCode.Download the desired SDK, bundled with XCode, from developer.apple.com/downloads

使用此方法,您可以下载任何iOS或OSX SDK并将其安装到XCode。从developer.apple.com/downloads下载与XCode捆绑在一起的所需SDK。

如何更新iPhone SDK而无需重新下载Xcode?

Once the package is done downloading mount the disk image. Right on the XCode application in the image and click on Show Package Contents. Navigate to:

完成包后,下载安装磁盘映像。在图像中的XCode应用程序上,然后单击“显示包内容”。导航:

/Contents/Developer/Platforms/

the iOS SDKs are in:

iOS SDK位于:

iPhoneOS.platform/Developer/SDKs/ 如何更新iPhone SDK而无需重新下载Xcode?

the OSX SDKs are in:

OSX SDK位于:

MacOSX.platform/Developer/SDKs/

and the iOS simulator SDKs are in:

iOS模拟器SDK位于:

iPhoneSimulator.platform/Developer/SDKs/

To install one of the SDKs simply find XCode.app and place the SDK in the appropriate folder of the XCode.app package.

要安装其中一个SDK,只需找到XCode.app并将SDK放在XCode.app包的相应文件夹中。

Method Two

With this method you can only dowload iOS simulators and iOS simulator SDKs.

使用此方法,您只能下载iOS模拟器和iOS模拟器SDK。

Open XCode and in the menu bar click on XCode > Preferences. In the preferences dialog select the downloads tab and select the simulators you would like to dowload.

打开XCode,在菜单栏中单击XCode> Preferences。在首选项对话框中,选择下载选项卡,然后选择要下载的模拟器。

如何更新iPhone SDK而无需重新下载Xcode?

#4


6  

Unfortunately, no. Apple only provides the SDK as a bundled package.

很不幸的是,不行。 Apple仅将SDK作为捆绑包提供。

#5


2  

They quite often include fixes and updates in the bundled version of xcode. I guess this is a good way for them to "force" people to use the latest point release of xcode.

它们经常包含xcode捆绑版本中的修复和更新。我想这是他们“强迫”人们使用xcode最新版本的好方法。