Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Simulator 8.1 SDK missing in XCode 6.2

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.

like image 451
Tad Avatar asked Mar 10 '15 23:03

Tad


People also ask

How do I add iOS simulator to Xcode?

If you require a different version of the iOS simulator than is provided by your Xcode installation, you can download additional simulators in Xcode. Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

How do I show simulator in Xcode?

The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators.

How can you access iOS simulator in Xcode?

Open Xcode. Select the Window menu option. Choose the Devices and Simulators menu. Select the Simulators tab.

How do I change generic iOS device to simulator Xcode?

Open Xcode, Goto Preferences, Select Component. Click on Simulators of your choice then it will start the process of download & installing the simulators.


2 Answers

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."
like image 50
richardpiazza Avatar answered Oct 12 '22 00:10

richardpiazza


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!

like image 20
Bartserk Avatar answered Oct 12 '22 01:10

Bartserk