【错误处理】iOS报错,Undefined symbols for architecture x86_64

 

问题描述

Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_JPUSHRegisterEntity", referenced from:

      objc-class-ref in AppDelegate.o

  "_OBJC_CLASS_$_JPUSHService", referenced from:

      objc-class-ref in AppDelegate.o

      objc-class-ref in UserService.o

ld: symbol(s) not found for architecture x86_64

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

 

尝试解决

尝试一

把JPush库(或其它相应的库)的.a文件移到别的地方,删除Xcode中的引用,然后重新吧.a引入。编译运行。

 

尝试二

检查调整编译模式为debug,大概因为.a库仅支持debug或者release模式。编译运行。

 

【错误处理】iOS报错,Undefined symbols for architecture x86_64

【错误处理】iOS报错,Undefined symbols for architecture x86_64