Unable to boot device in current state: Booted

独自空忆成欢 提交于 2019-12-02 16:57:40

In Xcode go to the Xcode menu->Open Developer Tool - IOS Simulators. Choose simulator and then go hardware->device->manage device.

If the troubled device shows in the left column, delete it. Then add the device back from the '+' button. If it wasn't there in the first place, simply add it using the '+' button.

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"

I encountered similar problem. Got it resolved. Below are steps to fix it.

  1. Open Simulator

  2. Select Hardware -> Device -> Manage Devices...

  3. This will opens a window containing list of simulator devices

  4. Delete simulator that prompts error by right click on it.

  5. Again add simulator by clicking '+' button onto right corner of window

  6. Select Simulator Name, Device Type and iOS Version

Anton

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

Restarting the computer solved this for me. I restart very rarely so I would never normally have thought of this!

Delete all devices on Simulator->Hardware, and add them back, not working :(

Bug or not, restarting Xcode doesn't work for me; could not get Simulator back to work until restarting my computer and it seems the adding-back had failed before restarting.

Applicable for Xcode 6.x, here is the command-line solution (type on Terminal window):

  1. xcrun simctl shutdown
  2. xcrun simctl erase
  3. open /Contents/Developer/Applications/iOS\ Simulator.app

Where is the id of the device you want to launch. You can get the list of devices and their UDIDs here:

  • xcrun simctl list

This will kill any booted/running simulators even if the .app is not shown:

xcrun simctl shutdown all
Vineesh TP

Quit Xcode and Simulator.Then rebuild build and run.

Anand

Quit iOS simulator. Change Target iOS Simulator to any other iPhone or iPad and then run app. Its working for me.

Happened to me also, run an xcrun simctl shutdown <simulator uid> and got the simulator working again.

I had the same problem. I reset the settings on the iOS Simulator, and it was fine again.

iOS Simulator -> Reset Content and Settings...

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.

When I came to this issue,I tried to tackle it as follows:

  1. cd /Applications/Xcode.app/Contents/Developer/Applications

  2. In Terminal: open -n Simulator.app.Click Ok.

  3. Then go to Simulator->hardware->Device choose another device,not the same type of already opened one.(e.g, the first one is iphone 6 the new one could be iphone 7)

4.Then there will open a new simulator.

Hope this will help you.

I just quit the Xcode and then remove all derrived data. Then relaunch Xcode and do cleaning, build it wait for it's indexing complete then run the project and issue get resolved.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!