XCode 4.5 (4G182) + iPhone 5 iOS6 - Choose a desti

2020-02-08 07:05发布

So I have a brand new app I created last night for iOS6, using XCode 4.5. I can properly develop on my iPhone 4 with iOS6.

Today I got my new iPhone 5 with iOS6 and, after updating the certificates with the new device UUID, I tried to run my app on it and got this error:

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

I've enabled the device for development. Both armv7 and armv7s are on the settings.

I have included the sources from the Facebook 3.0 SDK and the linker flag '-lsqlite3.0'. I'm guessing the issue has to be related, but cannot figure what is wrong.

Any ideas how to solve it?

PS: The issue happens too when running the app on the simulator. No idea what changed on my project or XCode between last night and today, other than I have a new device and new certificates.

The selected destination does not support the architecture for which the selected software is built. Switch to a destination that supports that architecture in order to run the selected software.

17条回答
走好不送
2楼-- · 2020-02-08 07:52

I have found the same issue while running an OLD project on XCode 5.0 and My solution is:

You need to do following steps for getting out with this:

1. Set Valid Architectures : armv7,armv7s

2. Set compiler as LLVM in Project ---> Build Settings ---> Build Options. See attached image below

3. Set Base and Deployment sdk properly.

This is my solution. Happy To Help.

查看更多
小情绪 Triste *
3楼-- · 2020-02-08 07:53

I have solve the problem using the below steps.

Close the Xcode Delete the application from device Restart the device then re-run the application it working fine..

查看更多
够拽才男人
4楼-- · 2020-02-08 07:53

I ran into the same problem. When I check the compiler it is showing incompatible compiler. you need to make it valid one. To set valid compiler follow the steps

select your

project----> build settings-->

on the search bar type compiler and search now you can find build options under build options you will find compiler for c/c++/objective c set it to valid one.enter image description here

查看更多
走好不送
5楼-- · 2020-02-08 07:54

I had an issue with an out of data library that was built for iOS 4.x and I was building a new app for iOS 6 with iPhone 5 support. I received this error and the only way I resolved it was to make armv7 the only architecture and valid architecture listed in my project and target build settings.

查看更多
Luminary・发光体
6楼-- · 2020-02-08 07:54

remove info.plist refrence. And then re-drag info.plist to proj but don't copy to "target"

查看更多
登录 后发表回答