IOS 8 Simulator unable to boot

前端 未结 10 2128
醉话见心
醉话见心 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 15:12

    I did follow most of the advices here without any simulators working. I had to remove a single simulator to get them working again.

    prompt> xcrun simctl list
    == Device Types ==
    iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
    iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
    iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
    iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
    iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
    iPad 2 (com.apple.CoreSimulator.SimDeviceType.iPad-2)
    iPad Retina (com.apple.CoreSimulator.SimDeviceType.iPad-Retina)
    iPad Air (com.apple.CoreSimulator.SimDeviceType.iPad-Air)
    Resizable iPhone (com.apple.CoreSimulator.SimDeviceType.Resizable-iPhone)
    Resizable iPad (com.apple.CoreSimulator.SimDeviceType.Resizable-iPad)
    == Runtimes ==
    iOS 7.0 (7.0 - Unknown) (com.apple.CoreSimulator.SimRuntime.iOS-7-0) (unavailable, runtime path not found)
    iOS 7.1 (7.1 - Unknown) (com.apple.CoreSimulator.SimRuntime.iOS-7-1) (unavailable, runtime path not found)
    iOS 8.1 (8.1 - 12B411) (com.apple.CoreSimulator.SimRuntime.iOS-8-1)
    == Devices ==
    -- iOS 7.0 --
    -- iOS 7.1 --
    -- iOS 8.1 --
        iPhone 4s (5F44F3AD-FE17-4EF6-A8DD-5A10E2EDCA09) (Shutdown)
        iPhone 5 (76053A14-F43C-4A32-8A72-96177C848741) (Creating)
        iPhone 5s (7998167A-E763-42F6-8945-65B514378154) (Shutdown)
        iPhone 6 Plus (4360DA62-2C1E-4529-AA30-F11CC9357854) (Shutdown)
        iPhone 6 (EE992AE3-B08E-4897-B28D-CEA486062E05) (Shutdown)
        iPad 2 (0D28BB5D-DD40-419D-8BA7-E9A1E9C777C6) (Shutdown)
        iPad Retina (365413A3-3F93-4EC4-B2DE-0D65358A81F3) (Shutdown)
        iPad Air (13CCAAF0-268D-47B0-9031-2034BE919BC1) (Shutdown)
        Resizable iPhone (8D5A265E-B714-4298-988C-3365E18391C9) (Shutdown)
        Resizable iPad (0EBB1D3B-951C-4BB1-813B-A0E83E67B0EB) (Shutdown)
    prompt>
    

    Solution was to delete the simulator stuck in (Creating) mode

    prompt> xcrun simctl delete 76053A14-F43C-4A32-8A72-96177C848741
    
    0 讨论(0)
  • 2020-11-30 15:14

    Following are the steps for solved above issue:

    1. Search launchd.conf file in your mac

    2. If not found then create from Terminal with help of command

    ~ user$ sudo touch /etc/launchd.conf

    1. Terminal will ask you machine password

    2. Then Open created file with help of command for EDIT, if terminal give you error as permission failed

    ~ user$ sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/launchd.conf

    1. Open file manually from /etc/launchd.conf (Shift+cmd+g) and enter /etc/ (TextEdit software)

    2. In file "DYLD_INSERT_LIBRARIES" flag replace with "ZZ" and save it.

    3. Restart your machine.

    4. Xcode will defiantly works.

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

    My solution was to select Edit scheme

    Edit scheme

    Then select "Run" and change "Executable" from "Ask on Launch" to my own app.

    Select run

    The simulator menu in Xcode was then repopulated.

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

    I found that removing and re-adding the simulator in Xcode 6 fixes the issue.

    1. After opening xcode 6 open iOS simulator
    2. Open hardware manage devices
    3. Remove all the simulators and re-add them

    After opening xcode 6 open iOS simulator Open hardware manage devices Remove all the simulators and re-add them

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