XCode 6.2 中缺少 iOS Simulator 8.1 SDK
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28975848/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iOS Simulator 8.1 SDK missing in XCode 6.2
提问by Tad
Developers I'm supporting just got new Macs with XCode 6.2 (Version 6.2 (6C131e)).
我支持的开发人员刚刚获得了带有 XCode 6.2(版本 6.2 (6C131e))的新 Mac。
In running xcodebuild we're having failures in running against any earlier version of the simulator, even if it's been downloaded, getting:
在运行 xcodebuild 时,我们在运行任何早期版本的模拟器时都失败了,即使它已经被下载,得到:
:build
xcodebuild: error: SDK "iphonesimulator7.1" cannot be located.
:build FAILED
I go to Xcode -> Preferences and download the iOS 8.1 and 7.1 simulator, but still they don't show when doing an xcodebuild -showsdks:
我转到 Xcode -> Preferences 并下载 iOS 8.1 和 7.1 模拟器,但在执行 xcodebuild -showsdks 时它们仍然没有显示:
xcodebuild -showsdks
iOS Simulator SDKs:
Simulator - iOS 8.2 -sdk iphonesimulator8.2
Ideas? I can't flip my whole project & CI pipeline to build against 8.2 just yet, wondering if there's a trick to getting the 7.1 / 8.1 sim working from the command line tools in Xcode 6.2.
想法?我还不能翻转我的整个项目和 CI 管道来针对 8.2 构建,想知道是否有一个技巧可以让 7.1 / 8.1 sim 从 Xcode 6.2 中的命令行工具工作。
回答by richardpiazza
It looks like Xcode 6.2 is having an issue recognizing any additional simulators:
看起来 Xcode 6.2 在识别任何其他模拟器时遇到问题:
xcodebuild[4554:1175053] [MT] iPhoneSimulator: SimVerifier returned: Error Domain=NSPOSIXErrorDomain Code=53 "Simulator verification failed."
UserInfo=0x7fe952514ca0 {
NSLocalizedFailureReason=A connection to the simulator verification service could not be established.,
NSLocalizedRecoverySuggestion=Ensure that Xcode.app is installed on a volume with ownership enabled.,
NSLocalizedDescription=Simulator verification failed.}
Some in the Apple Developer Forums are experiencing the same issues. A radar has been filed, and one possible solution of:
Apple 开发者论坛中的一些人遇到了同样的问题。雷达已提交,一种可能的解决方案是:
"Finally success by nuking /Library/Deverloper/* and re-installing Xcode."
回答by Bartserk
Found the answer in this thread: xcode simulator not coming up - reinstall possible?(the accepted answer). Looks like xcode 6.2 is not "smart" enough to create the simulators on its own. This is why, if you update from 6.1 to 6.2, you won't be able to see ios 8.2 simulators even if you have the sdk, and the same reason why if you do a clean install you can't see any simulator at all, even if you specifically install the simulators in the preferences menu. Cheers for the poorly packaged official bundles!
在此线程中找到了答案:xcode 模拟器没有出现 - 可以重新安装吗?(接受的答案)。看起来 xcode 6.2 不够“聪明”,无法自行创建模拟器。这就是为什么,如果您从 6.1 更新到 6.2,即使您有 sdk,您也将无法看到 ios 8.2 模拟器,这也是为什么如果您进行全新安装则根本看不到任何模拟器的原因,即使您在首选项菜单中专门安装了模拟器。为包装不佳的官方捆绑包干杯!
回答by Amzxxc
I found this issue too. But my method is to copy the simulator into the SDKs folder and this work at Xcode 6 earlier versions. After I upgrade to xcode 6.2, I found this method did not work anymore.
我也发现了这个问题。但我的方法是将模拟器复制到 SDKs 文件夹中,这适用于 Xcode 6 早期版本。升级到 xcode 6.2 后,我发现此方法不再适用。