1

I'm running Xcode 12.2 (12B45b) on my M1 MacBook Pro. Whenever I try to run the simulator on an older iOS, for example:

iPhone 11 Pro (13.0)

It doesn't work. Xcode pops up this error:

Failed to start launchd_sim...

When I press on Details, a screen pops up showing:

Details

Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding
Domain: com.apple.SimLaunchHostService.RequestError
Code: 4
--


System Information

macOS Version 11.0 (Build 20A2411)
Xcode 12.2 (17535) (Build 12B45b)
Timestamp: 2020-12-06T12:41:11-08:00

However, If I run a newer iOS like 14.2, it works perfectly. This was the runtime that came preinstalled with Xcode.

Working perfectly

I looked at this question, iOS Simulator is Crashing on startup, but the answer is almost useless. Some other people have had the same problem on the Dev Forums, but no one has a solution yet either.

Edit: It seems there is a mention of this on the release notes for Xcode 12.2:

Simulator runtimes for iOS 13, tvOS 13, and watchOS 6 and earlier don’t work on the Developer Transition Kit. Preferences offers these runtimes for download, but creating a simulated device from one of these runtimes fails, claiming the runtime is unavailable. Other Macs with Apple silicon support a limited set of older simulator runtimes for iOS and tvOS. (66115743, 70472441) (FB8157217)

5
  • 1
    There is no solution. Older simulators don't work on an M1.
    – matt
    Dec 6, 2020 at 21:27
  • @matt oh... do you know the lowest version that works? I'd like to get more details about this if I can
    – aheze
    Dec 6, 2020 at 21:29
  • 1
    @matt That’s not accurate. Per @aheze’s own answer, it looks like a point update to Big Sur was required.
    – Hanse00
    Dec 9, 2020 at 23:28
  • 1
    @Hanse00 It was quite accurate at the time. I didn't say they never would work. It was early days. It still is, really. Lots of wrinkles remain to be ironed out...
    – matt
    Dec 9, 2020 at 23:35
  • 1
    @matt Fair enough I guess, I don’t know down to the second when you posted your message, and when the patch was up.
    – Hanse00
    Dec 10, 2020 at 0:30

3 Answers 3

17

I solved this problem by removing simulator caches in:

~/Library/Developer/CoreSimulator/Caches

macOS Monterey 12.0.1, Xcode 13.3.1

1
  • Worked for me. The project hadn't been run in a month so maybe some background Xcode update changed something? I trashed the dyld folder and tried again, all good. Thanks! Jul 11 at 17:50
8

Please check the permission.I have fixed the issue by running the following command in terminal

sudo chmod 1777 /tmp
2
  • As absurd as it might sound, this fixed the problem for us.
    – Umair
    May 26 at 13:09
  • By chance is there an explanation somewhere for why this would fix the issue? Just ran into this problem and did this and simulators launch again.
    – freshsmoe
    Jun 30 at 2:56
4

Seems like it's fixed in Big Sur 11.0.1!

Running on iOS 13 simulator

"About this mac" description

As a side note, updating your M1 Mac is really fast! It literally took 20 minutes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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