jpush-phonegap-plugin icon indicating copy to clipboard operation
jpush-phonegap-plugin copied to clipboard

报错:unrecognized selector sent to class 0x10f61b558

Open imtiantian opened this issue 3 years ago • 2 comments

你的运行环境

  • 插件版本:
  • 平台(iOS):
  • Cordova version (10.0.0):
  • Cordova platform version (cordova-ios==6.0.0"):

期望效果

能正常使用

实际效果

ios报错

重现步骤

可以build成功,但是run的时候报错

libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[JPUSHService setupWithOption:appKey:channel:apsForProduction:advertisingIdentifier:]: unrecognized selector sent to class 0x10f61b558'
terminating with uncaught exception of type NSException

经过测试,v3.7.6是正常的,v3.8.0v3.8.1会报错。

imtiantian avatar Jun 07 '21 15:06 imtiantian

我也是刚报错,上午正常的

conkyliu avatar Jun 13 '21 04:06 conkyliu

JPushPlugin.m 的第532行 修改成这样就行了 。 [JPUSHService setupWithOption:userInfo appKey:appkey channel:channel apsForProduction:[isProduction boolValue]];

happyi avatar Jul 26 '21 09:07 happyi