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

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

    This happened to me because I switched branches in source control with unshared schemes.

    My xcuserdata folder was git-ignored, and it contained a scheme I forgot to share. This meant I was trying to use a scheme that was from a completely different code branch.

    I remade the scheme which fixed the problem, and marked it as shared so that it would be in the xcshareddata folder and checked into source control.

提交回复
热议问题