开发者

I can't build my project on a new (git) branch with xcode 4. why?

I created a new branch of my project and now when I try to build开发者_开发技巧 and run it I get this error:

'The selected run destination is not valid for this action.' Why is this? I don't know why but I just plugged in my iphone and now the project will build. Weird.

I can't build my project on a new (git) branch with xcode 4. why?


I can't build my project on a new (git) branch with xcode 4. why?

It can be because of:

  • a missing setting, as illustrated by this blog post:

I can't build my project on a new (git) branch with xcode 4. why?

The problem was fixed regardless of the value I selected in the above list (it worked with 3.0, 4.0, 4.2 or any other value).
When I changed the value in that list though, the IPHONEOS_DEPLOYMENT_TARGET setting was added to a section in project.pbxproj and I was able to run the app on the device.

  • an incorrect SDK setting. See this comment:

this is an Xcode 4 bug where it changes the platform to Mac OS X after template creation.
Close down the project, and launch it again, to fix it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜