XCODE:读取plist时出错:stream的字节太少

时间:2012-03-23 17:52:23

标签: iphone xcode testing plist

我开发了一款适用于iPhone的应用程序。我已经在iPhone模拟器中成功测试了它,但是只要我在测试iDevice上运行它,它就会抛出一个错误:

读取plist时出错:stream的字节太少,格式为:1064028076

如果在SIM卡上正常工作,怎么会出错?

2012-03-23 10:40:16.791 Ask Alarm[5697:707] Error reading plist: stream had too few bytes,
format: 1064028076
2012-03-23 10:40:16.807 Ask Alarm[5697:707] 2012-03-23 17:40:16 +0000
2012-03-23 10:40:16.814 Ask Alarm[5697:707] *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '*** -[__NSCFString stringByAppendingString:]: nil
argument'
*** First throw call stack:
(0x32b818bf 0x358491e5 0x32b817b9 0x32b817db 0x3216b121 0x697dd 0x36ba57ff 0x36c063b9 0x36c06357 0x36c05c91 0x36c08661 0x36c081a7 0x36bae6b5 0x36c0961b 0x36c4f691 0x36c4e14f 0x3028e93 0x36ca8d97 0x32adb435 0x36b879eb 0x36b879a7 0x36b87985 0x36b876f5 0x36b8802d 0x36b8650f 0x36b85f01 0x36b6c4ed 0x36b6bd2d 0x337f0df3 0x32b55553 0x32b554f5 0x32b54343 0x32ad74dd 0x32ad73a5 0x337effcd 0x36b9a743 0x670ab 0x669a8)
terminate called throwing an exception(lldb) 

1 个答案:

答案 0 :(得分:1)

这是一个格式错误的plist文件,或者stringByAppendingString来电中的内容是假的。

检查两者是否显而易见,如果您没有看到,请修改您的问题以添加一些代码(plist和包含stringByAppendingString行的代码)