是否可以在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?

查看:99
本文介绍了是否可以在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未检测到我的设备进行测试.在Xcode 4.2的Apple开发人员网站上找不到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.

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

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

  • 还从iPhoneOS.platform文件夹中的Lion机中将'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在这里下载:

    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

    /卷/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.

    请注意,此黑客也将适用于最新的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天全站免登陆