线程奔溃+[JPUSHTagAliasValidation checkAlias:] + 36

malgee
2017-11-09 02:11 1.1k 0
name: NSInvalidArgumentException 
reason: -[__NSCFNumber length]: unrecognized selector sent to instance 0x17002ff40 
callStackSymbols: 
0 CoreFoundation 0x0000000189316ff8 <redacted> + 148 
1 libobjc.A.dylib 0x0000000187d78538 objc_exception_throw + 56 
2 CoreFoundation 0x000000018931def4 <redacted> + 0 
3 CoreFoundation 0x000000018931af54 <redacted> + 916 
4 CoreFoundation 0x0000000189216d4c _CF_forwarding_prep_0 + 92 
5 Medically 0x00000001006a67bc +[JPUSHTagAliasValidation checkAlias:] + 36 
6 Medically 0x00000001006a0b0c -[JPUSHTagAliasManagerController aliasOperate:type:andCompletion:andSeq:] + 252 
7 Medically 0x00000001006a7d7c -[JPUSHClientController aliasOperateWith:] + 212 
8 Foundation 0x0000000189e0b50c <redacted> + 340 
9 CoreFoundation 0x00000001892c542c <redacted> + 24 
10 CoreFoundation 0x00000001892c4d9c <redacted> + 540 
11 CoreFoundation 0x00000001892c29a8 <redacted> + 744 
12 CoreFoundation 0x00000001891f2da4 CFRunLoopRunSpecific + 424 
13 CoreFoundation 0x000000018923f9c0 CFRunLoopRun + 112 
14 Medically 0x000000010066ea84 -[JPUSHThread clientThreadMain] + 100 
15 Foundation 0x0000000189e0b318 <redacted> + 996 
16 libsystem_pthread.dylib 0x00000001883d968c + 240 
17 libsystem_pthread.dylib 0x00000001883d959c + 0 
18 libsystem_pthread.dylib 0x00000001883d6cb4 thread_start + 4

2个回答

热门排序
  • 1、你把userID的类型打印出来,用String装 不代表一定是String,

    2、建议你如果还有问题 就先不要传别名 硬编码写死字符串代替,看看会不会有问题

  • unrecognized selector sent to instance 是App的逻辑错误,参考:1、https://community.jiguang.cn/t/jpush-hbuilder-ios/9852/2 2、请仔细根据 展示全部