2

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. enter image description here

lampShade
  • 4,361
  • 8
  • 34
  • 50

1 Answers1

0

error dialog

It can be because of:

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

Missing setting

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.

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250