“The run destination iOS Device is not valid for running the scheme”

前端 未结 28 1475
闹比i
闹比i 2020-12-13 12:09

I\'ve been running my app on an iPhone 5 /iOS 6, but when I try to run it on an iPhone 4S / iOS6 I get \"The run destination iOS Device is not valid for running the scheme N

相关标签:
28条回答
  • 2020-12-13 12:28

    Just quit XCode and restart (XCode 9.0.1)

    0 讨论(0)
  • 2020-12-13 12:28

    Other solutions might work for other scenarios but, in case using Xcode 11, I went into "Build Settings" of my test target and changed to universal under "Deployment"->"Targeted Device Family"

    0 讨论(0)
  • 2020-12-13 12:29

    Select your project, Under Targets, select your main target, then on the Build Settings Tab, there is one field that says "Valid Architectures". Make sure "armv7" is also there. You probably only have armv7s right now.

    0 讨论(0)
  • 2020-12-13 12:29

    I am using XCode 8.2.1 having same problem.

    Solution:

    ->Go to Devices

    -> Add additional simulators

    ->Right Click simulator u are using

    ->Show in Run Destination Menu <-Enable this Option

    0 讨论(0)
  • 2020-12-13 12:29

    Switching to a different USB port and restarting Xcode solved the problem. Experienced this issue on iMac running Xcode 9.1 whenever I tried connecting any iOS device to one specific USB port. If your USB ports stopped working, check this.

    • Open the Apple Menu > About this Mac > More Info > System Report > USB and check that the device appears in the USB Device Tree. If it is not here try another USB cable.

    0 讨论(0)
  • 2020-12-13 12:30

    I faced this issue in XCode 9, but later realised that for some reasons I had unchecked run destination in "Devices & Simulators" window

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