Undefined symbols for architecture i386:
"_OBJC_CLASS_$_JPUSHService", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in LoginController.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)
运行程序的时候,出现上述错误,原因:当前是Release环境导致的;
解决方法:
Edit Scheme --> Run --> Info --> Build Configuration --> 改为Debug 就可以了。

本文介绍了一种常见的iOS应用程序编译错误,即未定义符号问题,特别是针对_i386_架构的情况。此错误通常发生在Release环境下,文章提供了解决方案,即通过编辑构建方案将配置更改为Debug。
574

被折叠的 条评论
为什么被折叠?



