XCode 4.5 (4G182) + iPhone 5 iOS6 - 选择一个支持架构的目的地,以便在这个设备上运行
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12540534/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
XCode 4.5 (4G182) + iPhone 5 iOS6 - Choose a destination with a supported architecture in order to run on this device
提问by Eneko Alonso
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.
所以我有一个我昨晚为 iOS6 创建的全新应用程序,使用 XCode 4.5。我可以在带有 iOS6 的 iPhone 4 上正常开发。
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:
今天,我拿到了带有 iOS6 的新 iPhone 5,在使用新设备 UUID 更新证书后,我尝试在其上运行我的应用程序并收到此错误:
XCode cannot run using the selected device. Choose a destination with a supported architecture in order to run on this device.
XCode 无法使用所选设备运行。选择具有受支持架构的目标,以便在此设备上运行。
I've enabled the device for development. Both armv7 and armv7s are on the settings.
我已启用该设备进行开发。armv7 和 armv7s 都在设置上。
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.
我已经包含了来自 Facebook 3.0 SDK 的源代码和链接器标志“-lsqlite3.0”。我猜这个问题必须相关,但无法弄清楚出了什么问题。
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.
PS:在模拟器上运行应用程序时也会出现这个问题。不知道昨晚和今天之间我的项目或 XCode 发生了什么变化,除了我有一个新设备和新证书。
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.
所选目标不支持为其构建所选软件的体系结构。切换到支持该架构的目标以运行所选软件。
回答by Sophy Swicz
Also you need to select the compiler LLVM in
您还需要在中选择编译器 LLVM
Project --> Build Settings --> Build Options
项目 --> 构建设置 --> 构建选项
回答by Himanshu Agnihotri
I have found the same issue while running an OLD project on XCode 5.0and My solutionis:
我在 XCode 5.0 上运行OLD 项目时发现了同样的问题,我的解决方案是:
You need to do following steps for getting out with this:
您需要执行以下步骤来解决这个问题:
1.Set Valid Architectures: armv7,armv7s
1.设置有效架构:armv7,armv7s
2.Set compileras LLVM in Project ---> Build Settings ---> Build Options.
2.在Project ---> Build Settings ---> Build Options中设置编译器为LLVM 。
3.Set Base and Deployment sdkproperly.
3.正确设置Base 和Deployment sdk。
This is my solution. Happy To Help.
这是我的解决方案。很高兴能帮助你。
回答by brynbodayle
You need to add armv7s to your valid architectures under your Target's Build Settings.
您需要在 Target 的 Build Settings 下将 armv7s 添加到您的有效架构中。
回答by 5lava
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! :)
您src/Framework/Resources/Info.plist
在将 Facebook SDK 文件添加到您的项目时包括在内。只需将其从您的项目中删除,一切都会再次运行。保证!:)
回答by Bharathi D
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
- 关闭 Xcode
- 从设备中删除应用程序
- 重启设备
- 然后重新运行应用程序
it is working fine..
它工作正常..
回答by nithinreddy
Make sure the bundle name (in plist file) is same as the project name. I changed it and it worked.
确保包名称(在 plist 文件中)与项目名称相同。我改变了它并且它起作用了。
回答by Charles T
One of my 3rd party libraries couldn't run on armv7sso I removed that option. I also removed armv6and kept armv7as the only option. It built and ran on the phone with only armv7.
我的第 3 方库之一无法在armv7s 上运行,因此我删除了该选项。我还删除了armv6并将armv7作为唯一选择。它仅使用armv7构建并在手机上运行。
回答by SongJin Ri
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..
关闭 Xcode 从设备中删除应用程序重新启动设备,然后重新运行它工作正常的应用程序。
回答by Nishant Tyagi
I faced this problem because Build settings-> Complier for C/C++/Objective c
was set wrong.
我遇到这个问题是因为Build settings-> Complier for C/C++/Objective c
设置错误。
So I changed it to default compiler available, it worked!
所以我将其更改为默认编译器可用,它起作用了!
回答by megha
Just need to select the compiler LLVM in
只需要在编译器中选择LLVM
Targets --> Build Settings --> Build Options
目标 --> 构建设置 --> 构建选项