在Xcode 7.3.1中使用iPhoneSimulator 8.4 SDK

时间:2016-08-31 05:02:26

标签: ios objective-c iphone xcode

我尝试过这里提到的方法,

How to point Xcode to an old SDK so it can be used as a "Base SDK"?

我下载了Xcode 6.4并找到了适用于iphone模拟器的8.4 SDK。

cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
ln -s /Applications/Xcode6.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/

然后我在MinimumSDKVersion

中修改了/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Info.plist

enter image description here

现在我重新启动Xcode,iPhone模拟器的SDK不存在。

enter image description here

如果我点击others并添加iphonesos8.4,则会显示iphoneos8.4 (sdk not found

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

尝试编辑/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform Info.plist,这样Xcode可以获取该8.4 SDK并链接它。那么你应该可以在iPhone 8.4模拟器上运行。如果仍然无法正常工作,请忘记符号链接,只需复制整个源SDK文件夹并将其重命名为iPhoneOS8.4.sdk