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条回答
Deceive 欺骗
2楼-- · 2020-02-08 07:29

You included src/Framework/Resources/Info.plist when added Facebook SDK files to your project. Just remove it from your project and everything will work again. Guaranteed! :)

查看更多
甜甜的少女心
3楼-- · 2020-02-08 07:30

Make sure the bundle name (in plist file) is same as the project name. I changed it and it worked.

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

Just need to select the compiler LLVM in

Targets --> Build Settings --> Build Options

We just need to change the unsupported compiler to the default compiler :)

查看更多
干净又极端
5楼-- · 2020-02-08 07:30

Ok, not sure if this is the Problem in Your Project. But what fixed it for me, was to change the Name of the Info.plist File.

  1. I changed the name from Info.plist to my-project-info.plist
  2. also change it under target-build-settings/Packaging/Info.plist
  3. Than delete the App from Devices/Simulators and re-run the App through Xcode

In my Case, everything worked fine since than. In my Case there was nothing wrong with the specifications made in the plist file or with the valid architectures.

查看更多
虎瘦雄心在
6楼-- · 2020-02-08 07:32

I have solve the problem using the below steps.

  1. Close the Xcode
  2. Delete the application from device
  3. Restart the device
  4. then re-run the application

it is working fine..

查看更多
我欲成王,谁敢阻挡
7楼-- · 2020-02-08 07:39

I faced this problem because Build settings-> Complier for C/C++/Objective c was set wrong.

So I changed it to default compiler available, it worked!

查看更多
登录 后发表回答