Undefined symbols for architecture i386:

使用极光推送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)
Undefined symbols for architecture i386:_第1张图片
错误提示截图

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

你可能感兴趣的:(Undefined symbols for architecture i386:)