jpush-phonegap-plugin
jpush-phonegap-plugin copied to clipboard
报错:unrecognized selector sent to class 0x10f61b558
你的运行环境
- 插件版本:
- 平台(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.0
和v3.8.1
会报错。
我也是刚报错,上午正常的
JPushPlugin.m 的第532行 修改成这样就行了 。 [JPUSHService setupWithOption:userInfo appKey:appkey channel:channel apsForProduction:[isProduction boolValue]];