32

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?

5 Answers 5

35

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

13
  • In XCode 7 beta 6 I don't see this error, but I can't launch app because it stuck in loading state.
    – ChikabuZ
    Commented Sep 3, 2015 at 15:38
  • 3
    I got this to work under Xcode 7.0 release too, just had to change "Xcode-beta.app" into "Xcode.app".
    – GOTO 0
    Commented Sep 21, 2015 at 23:38
  • 4
    The IPC protocol used by the iOS 7.1 and iOS 8+ liblaunch_sim.dylib are not the same. You will run into issues doing this. Commented Oct 6, 2015 at 23:10
  • 2
    @deej yes, it worked in Xcode 7 beta 1, afterwards iOS7 simulator disappeared. So for now there is no way to test it but on a device.
    – Mike Bevz
    Commented Nov 5, 2015 at 10:34
  • 1
    7.1 simulator appears in xcode 7.1.1 and xcode is able to install apps, but they have to be run manually. debugging not working either
    – deej
    Commented Nov 22, 2015 at 20:53
16

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.

3
  • Further to this: I've tried to find any sort of official or semi-official statement on whether this is likely to be the case after beta. I've failed.
    – Tommy
    Commented Jun 25, 2015 at 17:22
  • 1
    Link is dead. iOS 8.1 to 8.4 Simulators are supported. Spelling mistake at 'Docummentation'.
    – Cœur
    Commented Sep 14, 2015 at 1:18
  • 1
    Not sure if this would still be relevant but iOS 7 simulator was working fine on the XCode 7.0 (final). After upgrade to 7.1 I get the same exact error msg as OP.
    – inteist
    Commented Nov 2, 2015 at 2:14
6

First, find the target file:

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib

You need make backup liblaunch_sim.dylib (Just in case). Second, copied to destination (Remember to backup)

/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib

And If need it to: iOS 8.1.simruntime iOS 8.2.simruntime iOS 8.3.simruntime All done.

Hope it helps.

4
  • 1
    I can't find the CoreSimulator folder under /Library/Developer. Why is that?
    – kevinl
    Commented Sep 16, 2015 at 23:12
  • @kevinl I find CorseSimulator but Profiles doesn't appear, just "Devices". Tell me if you find it ! And I will tell you if I find :)
    – Vjardel
    Commented Sep 16, 2015 at 23:46
  • @Viny76 I ended up placing the liblaunc_sim.dylib after getting the iOS 7.1 simulator SDK from my old xcode located: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/system/host/liblaunch_sim.dylib now it works
    – kevinl
    Commented Sep 17, 2015 at 16:13
  • 1
    Now I get "Unable to boot the Simulator." Commented Oct 28, 2015 at 8:34
2

When you are using sudo command and terminal says: "Command not found" Then use command like below.

sudo su (enter)

$ sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}(enter)

$ sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}(enter)

$ 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 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"(enter)

$ 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"(enter) Exit(enter)

Now relaunch Xcode 7 if open earlier.you will be able to run simulators.

1
  • when I try the above, for 7.1, I get mv: rename /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib to /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib.bak: No such file or directory
    – Zvi
    Commented Aug 29, 2016 at 17:40
1

In Xcode 7 beta 6 this seems to be possible now.

http://adcdownload.apple.com/Developer_Tools/Xcode_7_beta_6/Xcode_7_beta_6_Release_Notes.pdf

Xcode 7.0 beta now supports downloadable legacy simulators. (20699475)

I haven't found a place to download these yet though. I will update when/if I find them.

2
  • Any update? I'd love to know where to download these!
    – DiscDev
    Commented Sep 21, 2015 at 22:55
  • The only thing I've found so far is Gend's answer above and pulling them out of the previous Xcode. Per this thread forums.developer.apple.com/thread/17108 it looks like there isn't going to be an official way to do this.
    – concertman
    Commented Sep 23, 2015 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.