我尝试过这里提到的方法,
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
现在我重新启动Xcode,iPhone模拟器的SDK不存在。
如果我点击others
并添加iphonesos8.4
,则会显示iphoneos8.4 (sdk not found
有什么想法吗?
答案 0 :(得分:0)
尝试编辑/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform Info.plist,这样Xcode可以获取该8.4 SDK并链接它。那么你应该可以在iPhone 8.4模拟器上运行。如果仍然无法正常工作,请忘记符号链接,只需复制整个源SDK文件夹并将其重命名为iPhoneOS8.4.sdk