工程运行没问题,但是使用instrument测试内存的时候爆粗了,如图
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_JPUSHRegisterEntity", referenced from:objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_JPUSHService", referenced from:
objc-class-ref in BeforeMainController.o
objc-class-ref in MainViewController.o
objc-class-ref in LoginController.o
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)
解决 方法将 build active achitecture only 中的release 和debug都设置为yes, 表示只支持当前的设备,不支持老设备。如图