是否可以在 Snow Leopard 上获得适用于 Xcode 4.2 的 iOS 5.1 SDK? [英] Is it possible to get the iOS 5.1 SDK for Xcode 4.2 on Snow Leopard?

查看:21
本文介绍了是否可以在 Snow Leopard 上获得适用于 Xcode 4.2 的 iOS 5.1 SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还有雪豹.我有用于 iOS 开发的 Xcode 4.2.今天早上我将我的 iPhone 和 iPad 升级到了 iOS 5.1.

I still have Snow Leopard. I have Xcode 4.2 for iOS development. This morning I upgraded my iPhone and iPad to iOS 5.1.

但是 Xcode 4.2 没有检测到我的设备进行测试.我在 Apple 的开发者网站上找不到适用于 Xcode 4.2 的 iOS 5.1 SDK 图像.

But Xcode 4.2 is not detecting my device for testing. I could not find the iOS 5.1 SDK image on Apple's developer site, for Xcode 4.2.

我现在不想升级到 Lion 以获得 XCode 4.3.

I don't want to do upgrade to Lion to get XCode 4.3 at this time.

我现在可以使用 Xcode 4.2(在 Snow Leopard 上)进行 iOS 开发吗?

Will I able to use Xcode 4.2 (on Snow Leopard) for iOS development now?

推荐答案

要在 Snow Leopard 上获得 Xcode 4.2 以在运行 iOS 5.1 的设备上运行代码,您可以执行以下操作这个:

To get Xcode 4.2 on Snow Leopard to run code on a device running iOS 5.1 you can do this:

  1. 如果您有另一台运行 Lion 和 Xcode 4.3.1 的 Mac,您可以从以下位置复制文件:

  1. If you have another Mac running Lion and Xcode 4.3.1 you can copy the files from:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)

  • 将复制的文件放在 Snow Leopard Mac 上的相同位置:可能

  • Place the copied files in the equivalent place on your Snow Leopard Mac: probably

    /Developer/Platforms/iPhoneOS.platform/DeviceSupport

    /Developer/Platforms/iPhoneOS.platform/DeviceSupport

  • 同样复制在此目录中找到的 iOS 5.1 SDK 文件:

  • Similarly copy the iOS 5.1 SDK files found in this directory:

    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk

    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk

  • 同时将 Lion 机器中 iPhoneOS.platform 文件夹中的version.plist"复制到 Snow Leopard 机器中.

  • Also copy 'version.plist' from the Lion machine in the iPhoneOS.platform folder to the Snow Leopard machine.

    在 Snow Leopard 机器上重新启动 Xcode 并重新连接设备,看起来很开心.

    Re-start Xcode on the Snow Leopard machine and re-connect the devices and it seems happy enough.

    如果您无法使用装有 Lion 和 Xcode 4.3.1 的机器:

    1. 您可以从 4.3.1 DMG 中获取文件,该文件可以从 Apple 此处 下载:Apple 开发者下载.

    1. You can get the files out of the 4.3.1 DMG which can be downloaded from Apple here: Downloads for Apple Developers.

    安装 DMG,在 Xcode 图标上显示包内容并向下钻取

    Mount the DMG, Show Package Contents on the Xcode icon and drill down to

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

  • 按照上述步骤操作.

  • Follow the steps above.

    您可能会发现在终端窗口中使用 Apple 专有的 ditto 方法 (sudo ditto src dest) 来复制文件夹更方便.

    You might find it more convenient to use Apple's proprietary ditto method (sudo ditto src dest) in the terminal window to copy the folders.

    请注意,此 hack 也适用于最新的 iOS 6 SDK.

    Note,this hack will also work for latest iOS 6 SDK.

    这篇关于是否可以在 Snow Leopard 上获得适用于 Xcode 4.2 的 iOS 5.1 SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆