Xcode beta 6 iOS 8: Simulator not working

64,430

Solution 1

the trick is, to select the right command line tools! just select it here enter image description here

reboot(!) and everything is fine again :-)

Solution 2

Ok It's known problem. Do you see simulators list? If not

Goto Xcode Menu -> Open Developer Tool -> It will open a simulator in your Dock -> click on simulator then go to Simulator Menu: Hardware -> Device -> Manage Devices. Add needed simulators. Always try to run your app with different simulators.someone will work.

Solution 3

Restart your Mac. I just had that exact error after installing Xcode 6 beta 7, literally the only thing I did in response was reboot my Mac and now the iOS 8 simulator is working.

This error is common if you update Xcode without restarting afterwards.

Solution 4

In my case, i reset ios simulator settings fix it.

iOS Simulator -> Reset Content and Settings ...

Solution 5

  1. Open Xcode 6 beta
  2. Goto Window > Devices
  3. Click on the little + sign at the bottom
  4. Add (if missing) all the devices that you want, or delete and recreate if not working.
  5. If anyone of the simulator is not working then you can delete it and then re-create it again in this menu.

enter image description here

Share:
64,430
JakeFromStateFarm
Author by

JakeFromStateFarm

Updated on July 18, 2022

Comments

  • JakeFromStateFarm
    JakeFromStateFarm almost 2 years

    I cannot launch the simulator successfully. Once I launch the IOS Simulator this error appears:

    "Unable to boot the IOS Simulator."

    Following the IOS Simulator error, I then get an error from Xcode reading:

    Unable to run app in Simulator
    An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)

    Screenshot for error

    UPDATE:

    This might sound silly but I went to Xcode/preference/Downloads with intentions of seeing a IOS 8.0 Simulator but there was none. Could this be the problem? Am I suppose to have a IOS 8.0 Simulator? If so can someone direct me how to get it? Also, under the "Downloads" tab in Xcode preference I do see IOS 7.0 and 7.1 Simulators and both work fine with Xcode 5.

  • JakeFromStateFarm
    JakeFromStateFarm almost 10 years
    I do see the simulator list and I tried all simulators. I also tried deleting and adding simulators and still no luck. I am completely lost as to why its not working. Any other suggestions @Anton
  • Anton
    Anton almost 10 years
    Just try only completely remove Xcode 6 with all its system files from your mac and Install it again from package.
  • JakeFromStateFarm
    JakeFromStateFarm almost 10 years
    I tried deleting and reinstalling a few times also @Anton
  • Anton
    Anton almost 10 years
    When you are deleting Xcode 6 from Applications only, it not removing your internal files. I am using AppCleaner app to remove it. I don't know if it's still exists. I installed it years ago. If it's still not working, the other suggestion to wait beta 4 Xcode 6. If it's happening on your existing project? Or on new project?
  • Anton
    Anton almost 10 years
  • JakeFromStateFarm
    JakeFromStateFarm almost 10 years
    I do have AppCleaner installed and I also tried using it. I guess I will just have to wait for beta 4 or the official release. I am just confused as to why its not working for me. I am reading about possible solutions but nothing seems to be working for me. Thanks for your help @Anton
  • Anton
    Anton almost 10 years
    I asked you above, if it's happening on a new project or old one?
  • JakeFromStateFarm
    JakeFromStateFarm almost 10 years
    Oh sorry I didn't get back to you. I tested on both new and old projects and the same error appears. @Anton
  • Anton
    Anton almost 10 years
    Have you checked this link? stackoverflow.com/questions/24033417/…
  • JakeFromStateFarm
    JakeFromStateFarm almost 10 years
    yup, that was the first solution I came across. I am running out of ideas as to why its not working for me. @Anton
  • Anton
    Anton almost 10 years
    I think just wait for other beta.
  • ZaBlanc
    ZaBlanc almost 10 years
    Yeah, was hoping Beta 5 fixed it, but no. I can only use the iOS 7 simulators.
  • NeilMortonNet
    NeilMortonNet over 9 years
    Worked a charm! Thank you!
  • Jay Mayu
    Jay Mayu over 9 years
    It didn't help either :(
  • SinisterMJ
    SinisterMJ over 9 years
    I got it working with just the reboot but I ALSO found after the command line tools were old, so I selected the most recent and re-started Xcode.
  • Sparragus
    Sparragus over 9 years
    I did this, and it worked. On the Devices List (inside iOS Simulator) I removed the iPhone 5s, and added a new one. Ran the simulator the app on the simulator again, and it worked.
  • Amir Memon
    Amir Memon over 9 years
    I emptied out my trash after deleting, what do i do now? :-(
  • Amir Memon
    Amir Memon over 9 years
    This did the trick for me, thanks. Now I need to send Apple a bill for the hours of productivity I lost.
  • Amir Memon
    Amir Memon over 9 years
    Rebooting my mac alone didn't work, I had to aslo remove all simulators, etc like pchelnikov's answer below.
  • Jayprakash Dubey
    Jayprakash Dubey over 9 years
    I'm geting an error while resetting content of simulator. "Unable to boot device in current state: Creating". What the hell is this?
  • PaperThick
    PaperThick over 9 years
    Worked for me when updating from 6.0 to 6.1
  • Chris Prince
    Chris Prince over 9 years
    Xcode 6.1. Didn't need to reboot. Procedure worked otherwise.
  • NSPratik
    NSPratik over 9 years
    This answer really worked for me and it forced me to up-vote the answer. By this, we can add desired number of Devices with the combination of iOS versions.
  • CheeseFerret
    CheeseFerret over 9 years
    Are there no simulators when xcode and the sdk are installed? This solution was exactly what I needed, I'm starting the iOS tutorials and creating a simulator isn't in the getting started steps. I think Apple need to update their docs.
  • Umar Farooq
    Umar Farooq over 9 years
    yea may be, i dont see exactly when i installed xcode 6
  • Alex
    Alex about 8 years
    Struggled a long. Your answer solved my headache. Thanks.
  • 4b0
    4b0 about 4 years
    ZhiYi Lee, please don't add "thanks" as answers. They don't actually provide an answer to the question, and can be perceived as noise by its future visitors. Instead, upvote answers you like. This way future visitors of the question will see a higher vote count on that answer, and the answerer will also be rewarded with reputation points. See Why is voting important.