Cannot run on the selected destinationThe 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.
TARGET 中的Deployment Target 和PROJECT 中的ios Deployment Target 都设置为 5.0,其他的设置都没有改动,但就是不能在6.0的模拟器上运行,在touch4 上就可以运行。还有一个非常奇怪的现象就是现在不能运行的工程过一段时间,什么都没有调就可以运行了。请问这到底是什么问题?
应该怎么解决?谢谢啊……

解决方案 »

  1.   


    里的armv7 或 armv7s去掉试试
      

  2.   

    在项目的Resources目录下找到info.plist,单击该文件,在Xcode右上角点击“Hide or show the Utilities”按钮,出现“Target membership“,把勾去掉。重新运行即可
      

  3.   

    Quote: 引用 2 楼 WUZONGAN349 的回复:
    去掉之后就出现了 linked错误:
    Undefined symbols for architecture i386:
      "_OBJC_CLASS_$_AppDelegate", referenced from:
          objc-class-ref in main.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)