当前位置: 代码迷 >> 综合 >> 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

热度:78   发布时间:2023-12-11 14:20:30.0

今天下载了一个demo,运行时出现了“Choose a destination with a supported architecture in order to run on this device”的错误。在网上找了下方法,如下:

网去搜索,发现大部分人说的是,build setting里面的product name没有设置正确,可是我的name设置的很正确啊,最后无意间看到一位仁兄的话发现我的错误正是在这里:ios5的设备不支持armv7s,所以必须将Architectures设置为armv6,但是他最后说了一句,仅仅需要改动valid architectures就行,不要改动architectures,否则容易引起真机不运行,xcode4.5 <wbr>各种不能运行在真机上,这就是我的错误所在,我吧architectures也给改成了armv6了。记得,architectures就保持原来的状态:$(ARCHS_STANDARD_32_BIT)。


Also you need to select the compiler LLVM in

Project --> Build Settings --> Build Options


  相关解决方案