Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode "Cannot parse contents of Info.plist"

I just hit a brick wall with xCode not wanting to parse my Info.plist file. I've replaced the file several times with older (identical) versions of the file that I had previously backed up, and I'm still getting the same error.

Here is the complete error message:

couldn't parse contents of '/Users/...Info.plist': The data couldn’t be read because it isn’t in the correct format. 

I'm clueless on this one. I'm using xCode 5.0.1, Mavericks

like image 929
jhilgert00 Avatar asked Oct 28 '13 18:10

jhilgert00


2 Answers

This is one of the best way to detect on which line the error is occurring.

Just go the directory where the plist file is present then write this command on terminal->

plutil filename.plist 
like image 89
Vizllx Avatar answered Sep 28 '22 02:09

Vizllx


Another cause of this issue can be from attempting to put URLs (really just slashes etc.) in your app-Info.plist.

Get around it by simply raising the -traditional flag inside of the Info.plist Other Preprocessor Flags option in your project build settings.

enter image description here

like image 45
capikaw Avatar answered Sep 28 '22 02:09

capikaw