Invalid Device State - Xcode/iOS Simulator error

前端 未结 11 1665
北恋
北恋 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 10:14

    I observed this happening when more than one Xcode app installed.

    To fix this,

    1. Launch Xcode and click preference..,
    2. Go to "Location" Tab, Select correct options from "Command Line Tools" dropdown
    3. Quit Xcode and relaunch it.
    4. Run your app.
    0 讨论(0)
  • 2020-12-03 10:16

    Jus clean the project and restart Xcode. This happens to me when I have two diffent xcode versions running at the same time.

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

    I have Xcode 7.3 and Xcode 8.0 Installed.

    If a am working with Xcode7.3 and opens Xcode8.0 to get some code from Xcode8.0 project.

    When i run my application on Xcode7.3 So it will give me same error.

    Solution is simple ForceQuit or Quit all Xcode's and open the required one.

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

    No need to quit, restart or even re-install. Switch to another iOS Simulator device (6s if you were using 6s plus) and voila!

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

    I had the same issue. Generally it is because you just update Xcode or change its name in the Applications folder.

    If you just restart your computer it will work correctly.

    Hope it helps !

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