2017-10-17 75 views
0

当我尝试运行我的项目,我得到这个错误,指着我的本地化.strings文件:XCBUtil.PropertyListConversionError在Xcode

Screenshot of the error.

读取失败:操作无法完成。 (XCBUtil.PropertyListConversionError错误1.)

我该如何解决此问题?

回答

2

错误指向的.string文件中存在格式错误。本地化.strings文件应包含在报价字符串(如果它们包含多个单词和/或特殊字符)和分号在线路末端,像这样的:

string = translation; 
"another string" = "another translation"; 

请参考this solution到找到错误。

你应该在终端执行

/usr/bin/plutil -lint <path to .strings file> 

找到确切的问题。