Is Xcode giving you the error in Localizable.strings “Read failed: The data couldn’t be read because it isn’t in the correct format.” but it isn’t telling you what line the error is on?

Use the command line tool plutil to find that missing semicolon or double quote.

cd to the directory of the offending Localizable.strings file and run

plutil -lint Localizable.strings

It should respond with something like:

CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 86. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.

Localizable.strings: Unexpected character / at line 1

Go ahead and open your Localizable.strings file, check line 86, and put that missing semicolon back in its place.

Reference:

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/plutil.1.html

Did you find this post helpful? Support independent development and improve your sleep by downloading White Noise and Deep Sleep Sounds free from the App Store.

Tested with

Xcode Version 7.2.1

Use plutil to find that missing double quote or semicolon in your Localizable.strings file
Translate »