ARTICLES

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

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

Tested with:
Xcode Version 7.2.1

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.



Our Products

Kitemetrics
Keyword level attribution for Apple Search Ads. Optimize your bids and increase your revenue. Sign up for free at kitemetrics.com.

White Noise and Deep Sleep Sounds
Calming and relaxing sounds that will help you sleep like a baby tonight.
Download for free from the App Store.
Get it on Google Play.




Our Sponsors

Get Sleepy
Get Sleepy
The free podcast that puts you to sleep with meditative bedtime stories. Listen at getsleepy.com.