ios 真机调试遇到的错误: ld: symbol(s) not found for architecture arm64的解决办法

来源:互联网 发布:网络招打字员是真的吗 编辑:程序博客网 时间:2024/04/30 22:52

错误信息如下:

Undefined symbols for architecture armv7s:

  "_OBJC_CLASS_$_BaiduMobStat", referenced from:

      objc-class-ref in BaiduMobStatAppDelegate.o

      objc-class-ref in MyPageLogViewController.o

     (maybe you meant: _OBJC_CLASS_$_BaiduMobStatAppDelegate)

ld: symbol(s) not found for architecture armv7s

clang: error: linker command failed with exit code 1 (use -v to see invocation)

报此错误是因为你选的SDK不支持armv7s,在Bulid Settings 中Valid Architectures 中把armv7s删除就行了

现在Xcode已经升级到5.1了,如果用6.1SDK就会报ld: symbol(s) not found for architecture arm64的错误,这个目前比较常见,按以上的办法就可以解决了


报类似的错误的话,就可以照着这个改了。

0 0
原创粉丝点击