Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCBUtil.PropertyListConversionError in Xcode

Tags:

xcode

plist

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

Screenshot of the error.

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

What can I do to fix this issue?

like image 931
Tamás Sengel Avatar asked Oct 17 '17 14:10

Tamás Sengel


1 Answers

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.

like image 76
Tamás Sengel Avatar answered Sep 24 '22 10:09

Tamás Sengel