Undefined symbols for architectu

2017-09-25  本文已影响493人  肉身佛陀

使用极光推送3.0.6,在Xcode9、模拟器Debug模式下出现的问题,真机OK,错误提示如下:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_JPUSHRegisterEntity", referenced from:
      objc-class-ref in AppDelegate.o
  "_kJPFNetworkDidReceiveMessageNotification", referenced from:
      -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
  "_OBJC_CLASS_$_JPUSHService", referenced from:
      objc-class-ref in TJOALoginVC.o
      objc-class-ref in AppDelegate.o
      objc-class-ref in TJZF_MoveOAVC.o
      objc-class-ref in TJPersonalCenterVC.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
错误提示截图

解决方法:
将 Targets-》Build Setting -》Build Active Architecture Only 设置为YES;

上一篇 下一篇

猜你喜欢

热点阅读