jpush / jpush-phonegap-plugin

JPush's officially supported PhoneGap/Cordova plugin (Android & iOS). 极光推送官方支持的 PhoneGap/Cordova 插件(Android & iOS)。
https://docs.jiguang.cn
MIT License
925 stars 350 forks source link

报错:unrecognized selector sent to class 0x10f61b558 #438

Open imtiantian opened 3 years ago

imtiantian commented 3 years ago

你的运行环境

期望效果

能正常使用

实际效果

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会报错。

conkyliu commented 3 years ago

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

happyi commented 3 years ago

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