今天下载了一个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,否则容易引起真机不运行,,这就是我的错误所在,我吧architectures也给改成了armv6了。记得,architectures就保持原来的状态:$(ARCHS_STANDARD_32_BIT)。
Also you need to select the compiler LLVM in
Project --> Build Settings --> Build Options