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

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

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

It will work


It was a bug in XCode, I closed and reopened Xcode and it started working.

I've noticed this sort of thing many many times now with Xcode with other problems, its very frustrating that the tool is so dodgy.


I had the same problem. The issue that i found is that , by mistake I had chosen iPad as deployment target due to which XCode showed that iPhone 5 is an invalid device. enter image description here . Hope it helps. Then I just changed the target to iPhone and it worked.


This is some sort of memory issue sometimes.Close some application and try again.

Close Xcode too and reopen. Worked for me.

Cheers.

Tags:

Ios

Xcode