iOS Build Failed at compile time with issue “failed to find a suitable device for the type SimDeviceType”

前端 未结 9 1517
余生分开走
余生分开走 2020-12-24 04:33

I am getting following compile time issue when running the app with Xcode 10.3 beta 2 on iPad Air, I am getting the below issue.

Failed to find a suitable de         


        
相关标签:
9条回答
  • 2020-12-24 04:59

    If you are running multiple versions of xcode, you should check xcode-select -p to ensure you are using the correct version of xcode and compiler. If not, use xcode-select -s { correct xcode path } to set the correct version of xcode.

    0 讨论(0)
  • 2020-12-24 05:04

    The only thing that solved it for me was the following:

    1. Clear the ~/Library/Developer/CoreSimulator/Profiles/Runtimes folder
    2. Restart Xcode
    3. Clear the project
    4. Run the project
    0 讨论(0)
  • 2020-12-24 05:05

    I solve this by launching the simulator first, Xcode will pass the build.

    then run the project on the device.

    hope this will help

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