我得到这个错误的OBJ-C,用于释放对象不正确的校验 - 对象是被释放
malloc: * * * error for object 0x8a591d4: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
No memory available to program now: unsafe to call malloc
No memory available to program now: unsafe to call malloc
它来源于此行
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"Info"
ofType:@"plist"];
NSData *plistData = [NSData dataWithContentsOfFile:plistPath];
NSDictionary *loadedPlist =
[NSPropertyListSerialization propertyListFromData:plistData
mutabilityOption:0 format:NULL errorDescription:NULL]; <<< this line
plistData的价值后可能被修改设置为摘要不可用
我不确定从哪里开始?
编辑 - 添加更多的代码
至少发布引起错误的整个行。我的建议是,所有涉及该调用的代码,包括如何设置plistData。 – jer
不知道这是否有帮助,但尝试传递参数'nil'而不是'NULL' - 我不记得它是否有所作为 – Daniel