Xcode cannot run using the selected device after upgrade to Xcode 5.0

JeffB6688 picture JeffB6688 · Sep 24, 2013 · Viewed 23.2k times · Source

I upgraded to xcode 5.0 today. I then pressed play to run my project in the iOS simulator. This initially worked. Then I decided that I wanted to run the profiler. When I did that, I got the message:

Xcode cannot run using the selected device. 
Choose a destination with a supported architecture in order to run on this device.

I looked at a couple past posts on this problem and decided to do a Clean and Build. Now I can no longer run in the profiler or the simulator. I consistently get the message:

Xcode cannot run using the selected device. 
Choose a destination with a supported architecture in order to run on this device.

How can I resolve this?

Here are various settings:

My Deployment Target is 6.1

My Build Settings Architectures looks like:

I have also tried changing the deployment target to 7.0, but that did not work either

Answer

JeffB6688 picture JeffB6688 · Sep 24, 2013

It appears that the problem is not related to the architecture in the build settings as the error might suggest. Rather, I found that the problem seems to be related to the Build Options Compiler for C/C++/Objective C. I was using a gcc compiler (com.apple.compilers.llvmgcc42) and Xcode 5 has marked this as unsupported.

If I change the compiler to apple's default Apple LLVM 5.0, the project builds and it can now run in the simulator. The downside is that I have a lot of compiler warnings from code related to cocos2D v1.0 source code. But, at least I have a way forward.