Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to boot device in current state : Creating

I'm getting an error while running an application in Xcode 6 for iOS 8 simulator. The error states that 'Unable to boot device in current state: Creating'. I have tried to reset the content of simulator. Also, I have rebooted mac after installing Xcode 6. What might be fix?

Screenshot

like image 393
Jayprakash Dubey Avatar asked Oct 21 '14 07:10

Jayprakash Dubey


Video Answer


4 Answers

This problem happened to me when I renamed Xcode app from 'Xcode 2.app' to 'Xcode6.app' (I have both 5 & 6 Xcodes installed)

This answer helped me: https://stackoverflow.com/a/26151149/2764408

You will need to delete this device from your simulator and recreate it.

From inside the iOS Simulator application menu, choose Hardware > Device > Manage Devices

In the Simulators list on the left, select the device that is unable to boot and press the delete key

Now use the + in the bottom left to add a new device with the same hardware / OS configuration.

like image 81
DrMoriarty Avatar answered Oct 11 '22 12:10

DrMoriarty


This is mentioned in the Xcode 6.1 Release Notes

Simulated devices can get stuck in a “Creating” state in some circumstances. This problem can occur either when creating new devices or when resetting existing devices after having renamed Xcode.app.
If this this problem occurs, reboot your system and reset the device from the command line by running xcrun simctl erase <Device UDID>. You can obtain the UDID of the device by checking the output of xcrun simctl list.

like image 24
Jeremy Huddleston Sequoia Avatar answered Oct 11 '22 14:10

Jeremy Huddleston Sequoia


I was getting this error, I believe the problem was that I had wrong version of XCode command line tools selected (an older one).

# Use command line tools from Xcode.app (or correct path if not in standard location)
sudo xcode-select -s /Applications/Xcode.app/ 

After this you can try to repair the simulator device or just remove it and create a new one.

Repairing can in at least some cases be done with xcrun command by upgrade, shutdown etc. ocmmands

First list devices and runtime versions you have

xcrun simctl list

Then copy the simulator UUID from the list and try to shutdown.

xcrun simctl shutdown 43B7241F-CA66-4259-9B15-B3BAAB655779

If that does not work you can try other commands. I'm not sure which eventually resolved my problem. It may have been the upgrade.

From the list pick the newest iOS version (The version meant to be used with your XCode version should be visible if all is well.)

xcrun simctl upgrade 43B7241F-CA66-4259-9B15-B3BAAB655779 "com.apple.CoreSimulator.SimRuntime.iOS-11-4"

I even did erase, but I don't think that is necessary.

like image 33
Peter Lamberg Avatar answered Oct 11 '22 12:10

Peter Lamberg


Fixed this issue by xcrun simctl shutdown all in the terminal.

like image 28
hafiz ali Avatar answered Oct 11 '22 14:10

hafiz ali