报错类型
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_JPUSHService", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_JPUSHRegisterEntity", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
代码无法运行在i386平台上,也就是模拟器
解决办法
工程内部部分代码必须在debug模式下才可以运行在i386平台模拟器上image.png
补充
快速定位报错,筛除黄色警告方法
![](https://img.haomeiwen.com/i7912384/16760cba650e381e.png)
网友评论