未解决

swift #36572个回答

push_client_sdk_for_ios 1.5.4 soompay 2018-12-18

问:
大家好。 我正在用swift实现BPush ...... [BPushUtility isAllowedNotificationCallback]错误仍然出现。 (症状是第一次安装应用程序,第二次运行。) 所以,如果你能发布swift的演示项目,我们将不胜感激。 非常感谢你。 - 错误内容 +[BPushUtility isAllowedNotificationCallback:]: unrecognized selector sent to class 0x1008b1c90 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[BPushUtility isAllowedNotificationCallback:]: unrecognized selector sent to class 0x1008b1c90' *** First throw call stack: (0x1fed57ea0 0x1fdf29a40 0x1fec75dac 0x1fed5d7b8 0x1fed5f45c 0x10088697c 0x100884980 0x100874838 0x100872800 0x100872914 0x22bdd40f4 0x22bdd585c 0x22bddb2a8 0x22bdd80ac 0x22bdd7b00 0x22bddd054 0x1008760a8 0x1fe7a2bb4) libc++abi.dylib: terminating with uncaught exception of type NSException
确认 取消
答:
所有两个常量,或只有一个常量,都会导致错误。 -Objc | -all_load,-Objc,-all_load 什么是正确的答案?

soompay 2019-01-17

答:
在Other Linker Flags里添加-all_load或者是-Objc,一般来说添加-Objc就可以了,-all_load有时候会报错。

想要or需要 2019-01-15