Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run the iOS 7.1 Simulator in Xcode 7.0 beta 2?

I have installed latest Xcode 7 beta 2 version, when I am trying to run the application in iOS 7.1 Simulator its giving this error message:

The iOS 7.1 simulator runtime is not available.

Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime.

Could you please let me know how to resolve this error?

like image 847
IOS Rocks Avatar asked Jun 25 '15 17:06

IOS Rocks


People also ask

How do I run a simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download. When a simulator is opened from AppStudio, AppStudio Player automatically installs (if necessary) and opens in it.

How can you access iOS simulator in Xcode?

Do one of the following: Choose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.


2 Answers

Took a lot of browsing but I finally found a solution that worked for me (tried Gend's answer but didn't work). Execute the following lines:

sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}  sudo ln -sf "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib" "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib" 

Source: https://gist.github.com/leecade/83b4e710d7c741152527

like image 146
Anthony De Smet Avatar answered Sep 23 '22 06:09

Anthony De Smet


You can't (At least in an Official way).

Taken from Xcode Beta 2 Documentation (Page 7).

Hope it helps.

EDIT SEPT - 2015:

Thanks Cœur for the info, now you can use previous versions of ios simulator.

like image 38
Karlo A. López Avatar answered Sep 22 '22 06:09

Karlo A. López