How to know which line of plist file is incorrect

IosPlist

Ios Problem Overview


I generate plist file for my application from file in csv format.

Everything seems to be correct but when I try to build application or open plist file in XCode i Get an error informing that:

> mydata.plist:0: error: reading plist: The data couldn’t be read because it has been corrupted.

File contains a lot of data so it might be hard to manually find line which is incorrect.

Is it possible to validate file and get information which line is incorrect?

Ios Solutions


Solution 1 - Ios

Try running the following command in Terminal:

plutil <PATH_TO_FILE>

It will tell you what the problem is and give you the line number.

Solution 2 - Ios

Open plist file in Chrome browser gives the error line number.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMichKView Question on Stackoverflow
Solution 1 - IosmuratView Answer on Stackoverflow
Solution 2 - IosOrdoDeiView Answer on Stackoverflow