具有错误strcmp()的apportable unarchiveObjectWithData

时间:2013-11-12 09:56:35

标签: ios apportable

致电时:

NSDictionary *dict = [NSKeyedUnarchiver unarchiveObjectWithData:dictData];


Program received signal SIGSEGV, Segmentation fault.
0x400c6844 in strcmp ()
from /Users/myname/.apportable/cache/devices/4dfcdd3168ea50fb/libs/libc.so

是否存在apportable libs的错误?

测试代码:

NSDictionary *dictionary = [[NSDictionary alloc]initWithObjectsAndKeys:[NSValue valueWithRange:NSMakeRange(0,16)],@"Archive_Version",[NSValue valueWithRange:NSMakeRange(16,0)],@"Clothes.txt",nil];

NSData *dictData = [NSKeyedArchiver archivedDataWithRootObject:dictionary];

[dictionary release];

NSDictionary *dict2 = [NSKeyedUnarchiver unarchiveObjectWithData:dictData];

我使用免费版的Apportable,当我在控制台中调试时,结果是:

(gdb)po字典 {Archive_Version =“{location = 0,length = 16}”; Clothes.txt =“{location = 16,length = 0}”; }

(gdb)po dict2 {Archive_Version =“{location = -284,length = 1588768934}”; Clothes.txt =“{location = 7,length = 1593147632}”; }

感谢〜

1 个答案:

答案 0 :(得分:0)

NSArchiver存在一个已知错误,将在即将推出的基础重构中修复。查看https://code.google.com/p/apportable/已知错误报告。