NSJSONSerialization bug?

前端 未结 2 1091
死守一世寂寞
死守一世寂寞 2021-01-04 07:02

Been trying to debug a crash for the past 10 hours and finally, I simplified it to this code:

NSError *error = nil;
NSData *data = [NSData dataWithContentsOf         


        
2条回答
  •  别那么骄傲
    2021-01-04 07:38

    It looks like Apple did a bad work in error handling of such cases within their class, since your getting crash instead of normal nil result and error variable populated. Your json data and minimalistic code is what Apple usually require for a proper bug report. Report the bug by following link - https://developer.apple.com/bugreporter/ do not forget to attach project in zip as a proof that it crashes.

提交回复
热议问题