7
votes

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.

3
I think you should just update your app to use iOS 8.2 SDK.shinnyx
Unfortunately, I think that's our only option at this point to keep the pipeline running. It just eliminates any automated testing on earlier versions of the simulator.Tad
A guy opened a bug about this on Apple Developer Forums. Let's see if someone fix the issue.pasine

3 Answers

8
votes

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."
2
votes

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!

-1
votes

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.