react-native v0.62 集成极光推送release的时候报错

用户8555292
2020-06-11 07:24 449 1

按照jpush-react-native的步骤一步一步配置完之后,默认xcode的build configuration是debug,这个时候是没问题的。能够构建成功。
但是如果我切到Release,在构建,就会报错:

Undefined symbols for architecture i386:
  "_kJPFNetworkFailedRegisterNotification", referenced from:
      -[RCTJPushModule init] in libJPush.a(RCTJPushModule.o)
  "_kJPFNetworkDidCloseNotification", referenced from:
      -[RCTJPushModule init] in libJPush.a(RCTJPushModule.o)
  "_OBJC_CLASS_$_JPushNotificationIdentifier", referenced from:
      objc-class-ref in libJPush.a(RCTJPushModule.o)
  "_kJPFNetworkDidLoginNotification", referenced from:
      -[RCTJPushModule init] in libJPush.a(RCTJPushModule.o)
      -[RCTJPushModule convertConnect:] in libJPush.a(RCTJPushModule.o)
  "_OBJC_CLASS_$_JPushNotificationTrigger", referenced from:
      objc-class-ref in libJPush.a(RCTJPushModule.o)
  "_OBJC_CLASS_$_JPUSHRegisterEntity", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_JPushNotificationRequest", referenced from:
      objc-class-ref in libJPush.a(RCTJPushModule.o)
  "_OBJC_CLASS_$_JPushNotificationContent", referenced from:
      objc-class-ref in libJPush.a(RCTJPushModule.o)
  "_kJPFNetworkDidReceiveMessageNotification", referenced from:
      -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
  "_OBJC_CLASS_$_JPUSHService", referenced from:
      objc-class-ref in AppDelegate.o
      objc-class-ref in libJPush.a(RCTJPushModule.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

null

2个回答

热门排序
  • 极光古天乐
    2020-06-12 02:17

    jcore是否成功引入了,如果引入了,看下是否是2.0以上版本

  • DEDE
    2020-06-11 08:01

    你好,我也是rn 0.62,目前安卓无法安装成功,你是否安装成功?