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 就可以了。