Invalid Device State - Xcode/iOS Simulator error

前端 未结 11 1664
北恋
北恋 2020-12-03 09:36

Problem: I cannot simulate an Apple watch interface. Whenever I try and test my Apple watch app on the iPhone 6 simulator, Xcode successfully finishes and builds the app, at

相关标签:
11条回答
  • 2020-12-03 09:56

    First of all, just clean the project.

    1. Quit your project.
    2. Quit your Xcode.
    3. Restart Xcode.

    This happens to me when I have two different Xcode versions running at the same time. Hopefully this helps you.

    0 讨论(0)
  • 2020-12-03 09:58

    Force Quit xCode and restart will resolve problem.

    0 讨论(0)
  • 2020-12-03 09:58

    Nothing worked for me on XCode 7.3.1.

    Had to reinstall it to make the simulator work.

    1. Go to applications folder. Drag drop XCode to Dustbin.
    2. Empty dustbin contents.
    3. Go to App Store and install XCode.
    4. Run XCode. The simulator should work now.
    0 讨论(0)
  • 2020-12-03 10:00

    I had come across this issue after updating Xcode 6.4 to 7.1. Below are fixes for this :

    1. Clean project (cmd+shift+k) as well as clean build folder (cmd+shift+k+option)

    1. Quit simulator and run again
    2. Quit Xcode and Simulator and run again
    3. Restart your Mac.

    Solution 3 worked for me!

    0 讨论(0)
  • 2020-12-03 10:03

    In my case, the simulator would show an indefinite black screen whether attempting to run a project, or running the simulator directly (which should bring you to the simulated home screen). This would happen even on a newly created simulated device.

    After the existing suggestions failed, the following worked for me:

    • Delete the Simulator
    • Delete XCode
    • Delete the Developer folder
    • Reinstall XCode from the app store. This requires attempting to run XCode again so that Mac OS will realize it's no longer installed.
    0 讨论(0)
  • 2020-12-03 10:10

    Robust fix is Just Quit your xcode and run again, hope so it will help you. This heck work for me.

    0 讨论(0)
提交回复
热议问题