Choose a destination with a supported architecture in order to run on this device.

iOS中国开发者QQ群(262091386)中有个朋友出现了这样一个问题,在Xcode5.1下编译时候出现警告提示:

Choose a destination with a supported architecture in order to run on this device. 如下图

Choose a destination with a supported architecture in order to run on this device._第1张图片


后研究发现这个项目是在Xcode4.6下写的,而且用了XIB,现在要在Xcode5.1下运行,就会出现上面的错误提示,

解决方法也很简单,如下图


Choose a destination with a supported architecture in order to run on this device._第2张图片


Xcode4.6下的编译器是llvmgcc,而现在的编译器是更高级的LLVM,所以会出现无法编译的警告,只要把compiler(编译器)选项的值更改为LLVM 5.1 就能正常运行。





你可能感兴趣的:(Choose a destination with a supported architecture in order to run on this device.)