111299
iOS在自定义Project对象的notes数组中使用addObject抛错 错误信息:-[NSNull mutableCopyWithZone:]: unrecognized selector sent to instance 0x1a0c5cea8 错误定位: [object addObject:note forKey:@"notes"]; 代码: - (void)request_CreateNote_WithProject:(NSString *)projectId text:(NSString *)text photos:(NSArray *)photos type:(NSNumber…
2016-04-05 11:18:25.527 RunTai[3248:1575388] [DEBUG] -[LCCurlScheduler logCurlOperation:] [Line 80] ------ BEGIN LeanCloud REST Request ------ path: /1.1/always_collect curl: curl -i -k --compressed -X POST -H 'User-Agent: AVOS Cloud iOS-v3.2.7 SDK' -H 'Content-Type: application/json; charset=utf-8'…
2016-04-05 11:25:03.202 RunTai[3248:1575289] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull mutableCopyWithZone:]: unrecognized selector sent to instance 0x1a16b2ea8' *** First throw call stack: (0x1857ecf48 0x19a39ff80 0x1857f3c5c 0x1857f0c00 0x1856f4c…
111299: 错误定位: [object addObject:note forKey:@"notes"]; 报错的具体位置就是这啊
BugForAddObjectDemo 2.zip (42.8 KB) AVOSCloud的库有27M,太大了,我上传不了,所以我没有把它打入zip包,你解压后要手动把库加进去噢
我想问一下,有没有在帮我处理这个问题呢?至少给个回复我吧。
我给你的demo你应该看的到addobject的字段是个avobject啊,而且断点是可以看到note字段并不是nil。我尝试过直接通过objectid来获取note,然后再addobject,但是一样是不可以的。所以为什么会是null,我更想知道啊……
大概明白你的意思,我试试看