jpush 3.1.1.1集成编译出错

ios
标签: #<Tag:0x00007fb82df3f100>

(139) #1

xcode10.1 ios12.1编译成功
xcdoe10.1 ios9.3编译失败

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 MyViewController.o
      objc-class-ref in LoginVC.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)

JPUSHService.h libjcore-ios-1.2.5.a libjpush-ios-3.1.1.a
3个文件项目中都有


(12) #2

新版本SDK不支持i386模拟器,支持真机,处理办法请阅读:

1、 xcode8.1 iOS模拟器运行编译报错

2、 iOS导入3.0.7版本SDK,模拟器运行报Undefined symbols for architecture i386:

ionic 请请使用这个命令:

ionic cordova build ios --device

(139) #3

好的,非常感谢。