Unable to boot device in current state: Booted

2019-03-08 17:33发布

Any guess on "Unable to boot device in current state: Booted" error in Xcode6 beta while running (build+run) project in Simulator. I am just running my existing project in Xcode 6 I found above message. I tried cleaning, deleting of the derived data, even restarting the simulator doesn't work. Finally i restarted my Xcode 6 then it is working. Any simpler way to resolve the error instead of restarting your xcode6.

Screenshot for error

15条回答
地球回转人心会变
2楼-- · 2019-03-08 18:15

I solved this issue by this way:

  1. Open Xcode
  2. Goto Xcode menu > Open Developer Tool > iOS Simulators
    • It will run Simulator with error
  3. Goto Hardware > Device > Manage Device
  4. Add needed simulator to your system
查看更多
狗以群分
3楼-- · 2019-03-08 18:17

I don't know if this is any help to you guys but in my case I had this issue when I had a simulator window already open and I tried the command line invocation of simulator to run a .app file.

/Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app/Contents/MacOS/iOS\ Simulator -SimulateApplication ${pathToMyApp}/MyApp.app/MyApp

I just quit all of my simulator windows and ran the command again. That fixed it.

查看更多
一夜七次
4楼-- · 2019-03-08 18:22

From terminal, get the list of devices with:

xcrun simctl list

This will show you your list of devices with "Shutdown" or "Booted". You'll likely see your device is in a "Booted" state. You can shut it down with:

xcrun simctl shutdown <simulator id>

Where <simulator id> is the name of the device in the list. For example:

xcrun simctl shutdown "iPhone 6 Plus"
查看更多
登录 后发表回答