XCode 6.2中缺少iOS Simulator 8.1 SDK [英] iOS Simulator 8.1 SDK missing in XCode 6.2

查看:171
本文介绍了XCode 6.2中缺少iOS Simulator 8.1 SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我支持的开发人员只用XCode 6.2(版本6.2(6C131e))获得​​了新Mac。



在运行xcodebuild时,即使已经下载,仍然无法在任何早期版本的模拟器上运行,因此得到:

 :build 
xcodebuild:错误:无法找到SDKiphonesimulator7.1。
:构建失败

我转到Xcode - > Preferences并下载iOS 8.1和7.1模拟器,但它们在做xcodebuild时不显示--showsdks:

  xcodebuild -showsdks 

iOS模拟器SDK:
模拟器 - iOS 8.2 -sdk iphonesimulator8.2

想法?我不能翻转我的整个项目& CI流水线只是针对8.2而构建的,想知道从Xcode 6.2中的命令行工具中获取7.1 / 8.1 sim是否有技巧。

解决方案<看起来Xcode 6.2在识别任何额外的模拟器时遇到了问题:

  xcodebuild [4554:1175053] [MT] iPhoneSimulator:SimVerifier返回:错误域= NSPOSIXErrorDomain代码= 53模拟器验证失败。 
UserInfo = 0x7fe952514ca0 {
NSLocalizedFailureReason =无法建立与模拟器验证服务的连接,
NSLocalizedRecoverySuggestion =确保Xcode.app安装在启用了所有权的卷上。
NSLocalizedDescription =模拟器验证失败。}

Apple开发者论坛中的一些人遇到了同样的问题。已经提交了雷达,并提供了一个可能的解决方案:

 最终通过nuking / Library / Deverloper /安装Xcode。 


Developers I'm supporting just got new Macs with XCode 6.2 (Version 6.2 (6C131e)).

In running xcodebuild we're having failures in running against any earlier version of the simulator, even if it's been downloaded, getting:

: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:

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.

解决方案

It looks like Xcode 6.2 is having an issue recognizing any additional simulators:

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:

"Finally success by nuking /Library/Deverloper/* and re-installing Xcode."

这篇关于XCode 6.2中缺少iOS Simulator 8.1 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆