Skip to content

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

@YangDingLi

Description

@YangDingLi

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

  • Flutter.xcframework
  • FlutterPluginRegistrant.xcframework
  • jpush_flutter.xcframework

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions