JMessage sharedJMessage: unrecognized selector

szucyq
2019-04-15 02:52 327 0

jpush-ios-3.0.7
JMESSAGE_VERSION @"3.3.0"

执行这个方法就会crash:
[JMessage addDelegate:self withConversation:nil];

crash信息:
+[JMessage sharedJMessage]: unrecognized selector sent to class 0x101c7eea8
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString jmsg_checkAppKeyValidWithUpdate]: unrecognized selector sent to instance 0x101a66600'

Last Exception Backtrace:
0 CoreFoundation 0x00000001cd49ff10 + 252
1 libobjc.A.dylib 0x00000001cc66da40 objc_exception_throw + 56
2 CoreFoundation 0x00000001cd3b7154 + 0
3 CoreFoundation 0x00000001cd4a5810 + 1412
4 CoreFoundation 0x00000001cd4a74bc _CF_forwarding_prep_0 + 92
5 UDoctor 0x00000001014837bc +[JMessage setupJMessage:appKey:channel:apsForProduction:category:messageRoaming:] + 120
6 UDoctor 0x0000000100b4818c -[AppDelegate initJMessage:] + 308
7 UDoctor 0x0000000100b3a308 -[AppDelegate application:didFinishLaunchingWithOptions:] + 532
8 UIKitCore 0x00000001f9e665f8 + 412
9 UIKitCore 0x00000001f9e67d60 + 3340
10 UIKitCore 0x00000001f9e6d7ac + 1552
11 UIKitCore 0x00000001fa694db8 + 784
12 UIKitCore 0x00000001fa691364 + 160
13 UIKitCore 0x00000001fa694a34 + 240
14 UIKitCore 0x00000001fa6953d4 + 1076
15 UIKitCore 0x00000001fa6545fc + 772
16 UIKitCore 0x00000001fa6542a8 + 432
17 UIKitCore 0x00000001fa697844 + 220
18 UIKitCore 0x00000001fa698334 _performActionsWithDelayForTransitionContext + 112
19 UIKitCore 0x00000001fa6976fc + 248
20 UIKitCore 0x00000001fa690a10 + 368
21 UIKitCore 0x00000001f9e6bca4 + 540
22 UIKitCore 0x00000001f9e9d45c + 364
23 FrontBoardServices 0x00000001cfecf890 + 444
24 FrontBoardServices 0x00000001cfeda658 + 260
25 FrontBoardServices 0x00000001cfed9d50 + 64
26 libdispatch.dylib 0x0000000102f5cde4 _dispatch_client_callout + 16
27 libdispatch.dylib 0x0000000102f60a2c _dispatch_block_invoke_direct + 232
28 FrontBoardServices 0x00000001cff0e640 + 40
29 FrontBoardServices 0x00000001cff0e2cc + 416
30 FrontBoardServices 0x00000001cff0e8e8 + 56
31 CoreFoundation 0x00000001cd42e5b8 + 24
32 CoreFoundation 0x00000001cd42e538 + 88
33 CoreFoundation 0x00000001cd42de1c + 176
34 CoreFoundation 0x00000001cd428ce8 + 1040
35 CoreFoundation 0x00000001cd4285b8 CFRunLoopRunSpecific + 436
36 GraphicsServices 0x00000001cf69c584 GSEventRunModal + 100
37 UIKitCore 0x00000001f9e6f558 UIApplicationMain + 212
38 UDoctor 0x0000000100c05188 main + 124
39 libdyld.dylib 0x00000001ccee8b94 + 4

libc++abi.dylib: terminate_handler unexpectedly threw an exception

1个回答

热门排序
  • 你将 SDK 版本都升级到最新之后再测试https://docs.jiguang.cn/jmessage/updates/#ios-sdk-v381https://docs.jiguang.cn/jpush/updates/#jpush-i 展示全部