jpush-react-native icon indicating copy to clipboard operation
jpush-react-native copied to clipboard

Cannot initialize a parameter of type 'id<JPUSHRegisterDelegate>' with an lvalue of type 'AppDelegate *const __strong'

Open chj-damon opened this issue 4 years ago • 3 comments

你的运行环境

  • 插件版本:
  • react-native 版本:0.62

期望效果

在Xcode-->TARGETS-->Build Setting-->Apple Clang - Language-->Compile Source As在这个选项中选择 Objective-C++ 期望能够正常编译运行

实际效果

之后编译的时候JPush会报这个错: image

image

重现步骤

  1. ...
  2. ...
  3. ...
  4. ...

Debug logs

Cannot initialize a parameter of type 'id<JPUSHRegisterDelegate>' with an lvalue of type 'AppDelegate *const __strong'

Cannot initialize a parameter of type 'id<JPUSHGeofenceDelegate>' with an lvalue of type 'AppDelegate *const __strong' 包括 Android 或 iOS 的日志:

chj-damon avatar Aug 22 '20 05:08 chj-damon

老铁,又碰见你了。 我也遇见同样的问题了。 你是怎么解决的啊

zxymgl avatar Feb 07 '23 07:02 zxymgl

最新版本应该没有这个问题了吧?

chj-damon avatar Feb 07 '23 07:02 chj-damon

这个插件的最新版本吗?

zxymgl avatar Feb 07 '23 07:02 zxymgl