集成 JMessage 后,启动 app crash

ios
标签: #<Tag:0x00007fb845f91988>

(Vo Quan) #1
 +[JMessage sharedJMessage]: unrecognized selector sent to class 0x101b76278
2018-12-26 10:25:30.315199+0800 AirPC[311:12083] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[JMessage sharedJMessage]: unrecognized selector sent to class 0x101b76278'
*** First throw call stack:
(0x1a00b7ec4 0x19f288a40 0x19ffd5ccc 0x1a00bd7dc 0x1a00bf48c 0x100bfae94 0x1006ad554 0x1006a7234 0x1ccb8e560 0x1ccb8fcc8 0x1ccb95714 0x1cc431074 0x1cc439cf4 0x1cc430cf0 0x1cc431690 0x1cc42f790 0x1cc42f43c 0x1cc4345fc 0x1cc43555c 0x1cc4344b4 0x1cc4393a0 0x1ccb93c0c 0x1cc77e97c 0x1a2aee9d4 0x1a2af979c 0x1a2af8e94 0x1041a8dc8 0x1041aca10 0x1a2b2da9c 0x1a2b2d728 0x1a2b2dd44 0x1a00481f0 0x1a0048170 0x1a0047a54 0x1a0042920 0x1a00421f0 0x1a22bb584 0x1ccb974c0 0x10074a858 0x19fb01bb4)
libc++abi.dylib: terminating with uncaught exception of type NSException

#2

1、SDK 版本多少?

2、注意根据集成指南检查是否漏了什么配置,譬如other link -ObjC等
https://docs.jiguang.cn/jmessage/client/jmessage_ios_guide/


(Vo Quan) #3

版本jmessage-sdk-ios-3.7.0 ,添加-Objc 后我项目中原有的库报错,这怎么弄


#4

报了什么错??


(Vo Quan) #5

tmp546af1ed


(Vo Quan) #7

用的 sdl 库报错,但是不集成 JMessage 我项目其他功能都是正常运行的


#8

你添加-Objc 后 JMessage 没有问题了是吗


(Vo Quan) #9

添加-ObjC 项目编译报错没办法运行,不添加项目编译成功,但是运行在 appdelegate 中及 crash 了