Reputation: 3345
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.
Upvotes: 101
Views: 62007
Reputation: 1
As of 2024, I am getting this error. For example when launching a React Native application (i.e. yarn ios
) and the Simulator device is already booted.
You can just click Ok to ignore it, and the app launches nevertheless, but it still bugged me. Other answers suggest to disable the feature in Simulator, which just wakes up a recently used device instead of booting it. This removes the error popup but it causes your Simulator device to boot every time you start Simulator, which actually costs more time than just ignoring the popup.
What worked for me was to actually to just create a new Simulator in the Simulator app via File->New Simulator... and then launching my React Native app using that one.
What I also did was (it is probably optional), delete all Simulators before creating the new one, so I just end up with 1 device: xcrun simctl delete all
.
Also, I selected iOS 18 for my new Simulator (my previous one was iOS 17).
Upvotes: 0
Reputation: 81
This worked for me!
Step 1 - Open Simulator and go to Settings
Step 2 - Uncheck Simulator lifetime
Simulator lifetime
, uncheck the option When Simulator starts boot the most recently used simulator
This should work now!
Upvotes: 0
Reputation: 1127
just type single command into terminal given follow ==>
xcrun simctl shutdown all
hopefully, it will work.
Upvotes: 0
Reputation: 1
With simulator opened, select "simulator preferences" and disable (simulator lifetime),so it doesn't use the same simulator used before the default. Resolved for me.
Upvotes: 0
Reputation: 203
I had the same problem. I reset the settings on the iOS Simulator, and run an xcrun simctl erase all
and got the simulator working again.
Upvotes: 3
Reputation: 591
2022 fix
I found solution. Simulator -> Preferences -> Simulator lifetime: When Simulator starts boot the most recently used simulator I unchecked.
Upvotes: 58
Reputation: 71
This solution worked for me Go to Xcode -> Open Developer Tool-> Simulator -> uncheck the option when simulator starts boot the most recently used simulator
Upvotes: 7
Reputation: 470
This will kill any booted/running simulators even if the .app is not shown:
xcrun simctl shutdown all
Upvotes: 20
Reputation: 3120
I solved this issue by this way:
Upvotes: 9
Reputation: 690
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.
Upvotes: 0
Reputation: 4168
When I came to this issue,I tried to tackle it as follows:
cd /Applications/Xcode.app/Contents/Developer/Applications
4.Then there will open a new simulator.
Hope this will help you.
Upvotes: 0
Reputation: 14246
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"
Upvotes: 50
Reputation: 32879
Happened to me also, run an xcrun simctl shutdown <simulator uid>
and got the simulator working again.
Upvotes: 2
Reputation: 116
Applicable for Xcode 6.x, here is the command-line solution (type on Terminal window):
Where is the id of the device you want to launch. You can get the list of devices and their UDIDs here:
Upvotes: 3
Reputation: 3416
Quit iOS simulator. Change Target iOS Simulator to any other iPhone or iPad and then run app. Its working for me.
Upvotes: 3
Reputation: 36447
I encountered similar problem. Got it resolved. Below are steps to fix it.
Open Simulator
Select Hardware -> Device -> Manage Devices...
This will opens a window containing list of simulator devices
Delete simulator that prompts error by right click on it.
Again add simulator by clicking '+' button onto right corner of window
Upvotes: 11
Reputation: 262
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.
Upvotes: 1
Reputation: 535890
Restarting the computer solved this for me. I restart very rarely so I would never normally have thought of this!
Upvotes: 8
Reputation: 1716
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.
Upvotes: 55
Reputation: 1
I had the same problem. I reset the settings on the iOS Simulator, and it was fine again.
iOS Simulator -> Reset Content and Settings...
Upvotes: 0
Reputation: 1592
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.
Upvotes: 3