jpush / jpush-flutter-plugin

JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
840 stars 354 forks source link

iOS工程集成打包后的Flutter SDK报错 #479

Open YangDingLi opened 3 weeks ago

YangDingLi commented 3 weeks ago

将Flutter打包成SDK再集成到iOS工程中,SDK中包含

集成到工程中,如果调用代码

GeneratedPluginRegistrant.register(with: engine)

则报错:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_JGInforCollectionAuth", referenced from:
       in jpush_flutter[4](JPushPlugin.o)
  "_OBJC_CLASS_$_JPUSHRegisterEntity", referenced from:
       in jpush_flutter[4](JPushPlugin.o)
  "_OBJC_CLASS_$_JPUSHService", referenced from:
       in jpush_flutter[4](JPushPlugin.o)
  "_OBJC_CLASS_$_JPushCollectControl", referenced from:
       in jpush_flutter[4](JPushPlugin.o)
  "_OBJC_CLASS_$_JPushNotificationContent", referenced from:
       in jpush_flutter[4](JPushPlugin.o)
  "_OBJC_CLASS_$_JPushNotificationIdentifier", referenced from:
       in jpush_flutter[4](JPushPlugin.o)
  "_OBJC_CLASS_$_JPushNotificationRequest", referenced from:
       in jpush_flutter[4](JPushPlugin.o)
  "_OBJC_CLASS_$_JPushNotificationTrigger", referenced from:
       in jpush_flutter[4](JPushPlugin.o)
  "_kJPFNetworkDidCloseNotification", referenced from:
      -[JPushPlugin init] in jpush_flutter[4](JPushPlugin.o)
  "_kJPFNetworkDidLoginNotification", referenced from:
      -[JPushPlugin init] in jpush_flutter[4](JPushPlugin.o)
  "_kJPFNetworkDidReceiveMessageNotification", referenced from:
      -[JPushPlugin init] in jpush_flutter[4](JPushPlugin.o)
  "_kJPFNetworkDidRegisterNotification", referenced from:
      -[JPushPlugin init] in jpush_flutter[4](JPushPlugin.o)
  "_kJPFNetworkDidSetupNotification", referenced from:
      -[JPushPlugin init] in jpush_flutter[4](JPushPlugin.o)
  "_kJPFNetworkIsConnectingNotification", referenced from:
      -[JPushPlugin init] in jpush_flutter[4](JPushPlugin.o)
ld: symbol(s) not found for architecture arm64
YangDingLi commented 3 weeks ago

jpush_flutter: ^3.0.6