编译报错:Choose a destination with a supported architecture in order to run on this device

来源:互联网 发布:淘宝商城男鞋休闲 编辑:程序博客网 时间:2024/06/05 20:24

编译报错,报错信息如下所示:Choose a destination with a supported architecture in order to run on this device.


解决:通常出现这个问题的原因是以前的老项目在新版本的xcode中打开时会出现为这个问题。其实只要把编译器改成现在的LLVM即可。 修改位置Project->Build Settings -> Build Options。

设置方法为:项目名称-target-项目名称-build settings- build options-compiler for c/c++/objective-c(default compiler apple llvm)

0 0