IOS 8 Simulator unable to boot

前端 未结 10 2127
醉话见心
醉话见心 2020-11-30 14:26

When I try to run my app with Xcode 6 Beta 4 on the Simulator iOS 8.0 I always get this error:

Unable to boot the iOS Simulator

相关标签:
10条回答
  • 2020-11-30 14:54

    Even I encounter same problem, after a bit of toying around with Xcode and iOS simulator I am able to fix this issue with following steps:

    • First I will try to Reset Content and Settings... in OS Simulator.

    • If it doesn't work I will quit iOS Simulator and try.

    • Still if it doesn't work I will quit both Xcode and iOS Simulator.

    You should be able to fix things using above steps, if it doesn't, try reboot and then see if you can get things up and running.

    0 讨论(0)
  • 2020-11-30 14:58

    I am very happy that finally my issue resolved. Thanks to apple who helped me.

    For those who are still looking for solution, here is the one which helped me:

    Just unset DYLD_INSERT_LIBRARIES environment variable in the /etc/launchd.conf or ~/.launchd.conf file. Which you can edit by sudo vi /etc/launchd.conf command. remove the above flag save it by "ZZ" (captial Z) and reboot the system. It works like a charm.

    For reference: Xcode 6 simulator, unable to boot error.

    0 讨论(0)
  • 2020-11-30 14:58

    I just wrestled with this problem for a while and running this line finally fixed it for me in Xcode 6.2, running iOS8.2.

    launchctl setenv DYLD_INSERT_LIBRARIES ZZ
    

    It is doing the same thing as the accepted answer, but I could no longer set variables with launchd.conf in Yosemite:

    Setting environment variables via launchd.conf no longer works in OS X Yosemite/El Capitan/macOS Sierra?

    0 讨论(0)
  • 2020-11-30 15:01

    I was facing same issue for Xcode 8 and 7.3.1 version. Upgrading mac OX Sierra solved the issue

    0 讨论(0)
  • 2020-11-30 15:03

    Steps that I had to take to get this working.

    1. Remove all versions of Xcode (I had 5 and 6 both in my Applications folder)

    2. Install Xcode 6

    3. Open Xcode and go to Xcode > Preferences > Locations

    4. At the bottom of that screen under Command Line Tools, select Xcode 6.0 and make sure that the path under the select box reads /Applications/Xcode.app

    5. Close that window and go to Xcode > Open Developer Tool > iOS Simulator

    6. If the simulator has an error message, go to Hardware > Device > Manage Devices

    7. Select each of the devices in the left hand column and delete them (delete key on the keyboard)

    8. Completely quit out of the simulator and Xcode. Shut down and restart your computer (not logout)

    9. Once restarted, open up xCode, open the simulator, go back to manage devices and add back in the ones that you want.

    The simulator should now work as expected! Long winded, but that's the only way that I could get it to work.

    0 讨论(0)
  • 2020-11-30 15:03

    I have both 6.3 and 6.2 for some older swift tutorials, most of the time it is fine but sometimes I get this error when switching and it seems like it is some background issue with the simulator. I just restart my system and it works fine after boot. Kind of the hard way to go around but I dont do this often.

    0 讨论(0)
提交回复
热议问题