解决了clang: error: linker command failed with exit code 1 (use -v to see invocation) 解决方法

1.”Build Settings”->”Enable Bitcode”设置为NO 

2.TARGETS -->  Build Settings --> Architectures --> Valid Architectures  做同样的修改

3.PROJECT --> Build Settings --> Architectures --> Valid Architectures  他的值本来是 armv7 armv7s ,把armv7s 去掉即可

 4.PROJECT --> Build Settings --> Architectures -->Build Active Architecture Only的值改变No 

5.TARGETS --> Build Settings --> Architectures -->Build Active Architecture Only的值改变No

6. Build settings->Linking->Other Linker Flags 修改为-ObjC 。

posted @ 2016-01-12 16:11  繁星Boy  阅读(1951)  评论(0编辑  收藏  举报