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

前端 未结 28 1472
闹比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:19

    In my case the problem was missing executable value selected into Scheme -> Profile -> Executable (e selected from the dropdown build configuration debug and executable the "application".app).

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

    For my case, check the target -> Build Settings -> Search "Mach-O Type" and check the value, it should be Executable/Dynamic Library/Static Library. For other type values, the target could NOT be built and run.

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

    Quit and Reset Xcode can reslove most problem. The other cause is Device not support iPhone, you can

    Target -> select scheme -> General -> Deployment Info -> Device-> select Universal or the current device you want.

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

    its xcode bug,until 10.0 beta 3 (10L201y)

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

    The run destination iPhone is not valid for Running the scheme.

    • Quit Xcode
    • Open Xcode
    • Clean project
    • Run project

    It will work

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

    I notice this with certain cable+device combinations (probably bad contact), restarting the XCode will only help for one or two runs and then it strikes again. Changing cable / device is the only long term solution worked for me.

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