是否有可能在Snow Leopard上获得适用于Xcode 4.2的iOS 5.1 SDK?

jps*_*asi 139 xcode osx-snow-leopard xcode4.2 ios5.1

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

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

我不想在这个时候升级到Lion以获得XCode 4.3.

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

Ric*_*ves 213

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

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

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

  2. 将复制的文件放在Snow Leopard Mac上的等效位置:可能

    /Developer/Platforms/iPhoneOS.platform/DeviceSupport

  3. 同样,复制此目录中的iOS 5.1 SDK文件:

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

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

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

如果您无法访问使用Lion和Xcode 4.3.1的计算机:

  1. 您可以在此处获取4.3.1 DMG可从Apple下载的文件:Apple Developers的下载.

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

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

  3. 按照上面的步骤.

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

注意,这个hack也适用于最新的iOS 6 SDK.

  • 我通过复制/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk中的文件来解决上述问题.多亏了这一点,我现在可以推迟更换我的古老Mac至少几个月. (14认同)
  • @natbro - 我仍然可以在https://developer.apple.com/downloads/index.action#看到4.3.1 dmg罚款,目前我正在下载它. (6认同)
  • 今天我已将系统升级为Lion.感谢Hack. (3认同)

Mic*_*lum 14

你必须得到Lion,iOS 5.1 SDK仅适用于Xcode 4.3.1,仅适用于Lion.

...如果您已将Xcode更新为5.1,那么您的Xcode将无法构建到您的设备,因为它不会出现在该版本的Xcode批准的SDK上


Ale*_*one 14

我现在正在研究这个问题.我有同样的问题.

这里的主要问题是:

1)Apple从未提供警告对话框,这可能会禁用在Snow Leopard下开发的人员.

2)没有简单的方法来撤消这个.

3)这不应该发生在点发布更新上.

我试图从这里为我的Gen 4 IPod Touch从5.0.1安装以前的ipsw: 在哪里下载ipod touch固件恢复链接 它将无法安装.

我从这里下载了Lion Xcode 4.3.1(首先以开发人员身份登录) Lion Xcode 4.3.1

并从Dev论坛运行一些脚本:

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/

sudo rm -f ./Latest

sudo ln -s ./5.1\ \(9B176\) ./Latest
Run Code Online (Sandbox Code Playgroud)

卸载Lion DMG并重新启动Xcode.这允许我在模拟器中测试5.1但是使用SIGABRT或链接错误将每个构建打破到每个设备.

我要去Apple商店让他们恢复我的设备.如果我收到更多信息,我会告诉大家.这是一个非常昂贵和非常令人不快的惊喜.

  • 我完全同意你的看法.Apple对此的行为超出了不负责任的范畴.它告诉你:他们只是不在乎. (3认同)
  • 在我成为必须在iOS平台上开发的可怜的混蛋之前,我曾经爱过Apple. (3认同)

dkl*_*klt 8

添加到上面的Richards解决方案,我发现如果你复制,从XCode 4.3.1 dmg ...

编辑:更新以更正dmg内的路径

/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Develope r/SDKs/iPhoneOS5.1.sdk ~~(整个目录树)

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

XCode调试器将正确启动(没有所有错误日志和转储)

ie:
===============================================================================
warning: Unable to read symbols from "dyld" (prefix __dyld_) (not yet mapped into memory).
warning: Unable to read symbols from "SystemConfiguration" (not yet mapped into memory).
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/MessageUI.framework/MessageUI (file not found).
warning: No copy of dyld found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: No copy of <No file name> found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration (file not found).
warning: No copy of SystemConfiguration.framework/SystemConfiguration found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/MessageUI.framework/MessageUI (file not found).
warning: No copy of MessageUI.framework/MessageUI found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox (file not found).
warning: No copy of AudioToolbox.framework/AudioToolbox found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/Frameworks/iAd.framework/iAd (file not found).
warning: No copy of iAd.framework/iAd found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices (file not found).
warning: No copy of SpringBoardServices.framework/SpringBoardServices found locally, reading from memory on remote device.  This may slow down the debug session.
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)/Symbols/System/Library/PrivateFrameworks/FTClientServices.framework/FTClientServices (file not found).
warning: No copy of FTClientServices.framework/FTClientServices found locally, reading from memory on remote device.  This may slow down the debug session.
===============================================================================
Run Code Online (Sandbox Code Playgroud)


pro*_*sel 7

这里有一个答案,它还提供了模拟器v 5.1的副本.没有手动操作.只需打开终端,复制并粘贴提供的命令即可.

http://www.iphonedevsdk.com/forum/iphone-sdk-development/100229-snow-leopard-sdk-5-1-a.html


hch*_*n02 5

如果你想将iphone模拟器5.1添加到你的xcode然后复制

/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
Run Code Online (Sandbox Code Playgroud)

整个目录到以下路径=>

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
Run Code Online (Sandbox Code Playgroud)

之后您还可以使用iPhone模拟器5.1来调试您的应用程序.


Mar*_*nac 5

您可以在5.1或5.1.1设备上使用为5.0编译的应用程序,方法是编译它们并手动将.app文件拖到iTunes.今天在10.6.8和XCode 4.2上尝试过.