XCBUtil.PropertyListConversionError in Xcode

穿精又带淫゛_ 提交于 2021-01-01 02:59:29

问题


When I try to run my project, I get this error, pointing to my localized .strings file:

read failed: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.)

What can I do to fix this issue?


回答1:


There is a formatting error inside the .string file that the error is pointing at. Localizable .strings files should contain strings in quotes (if they contain more than one word and/or special characters) and semicolons at the end of lines, like such:

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

Please refer to this solution to find the error.

You should execute

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

in Terminal to find the exact issue.




回答2:


In my case, I had a conflict in info.plist which I forgot to resolve.




回答3:


This quite common when you have info.plist file with wrong structure.



来源:https://stackoverflow.com/questions/46792197/xcbutil-propertylistconversionerror-in-xcode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!