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?
plist file. If you need to edit these items, Control-click (or right-click) Info. plist in the sidebar and select Edit Manually. This allows you to add or edit items in raw XML format.
Preference and configuration files in macOS use property lists (plists) to specify the attributes, or properties, of an app or process. An example is the preferences plist for the Finder in the Library/Preferences/ folder of a user's home folder. The file is named com. apple.
plist . This name of this file is case sensitive and must have an initial capital letter I . In iOS apps, this file resides in the top-level of the bundle directory. In macOS bundles, this file resides in the bundle's Contents directory.
View PList File ( Property List File) on Windows 10. A PLIST file is a settings file used on Apple operating systems, also known as "Property List" file. PLIST file is widely used by iOS apps and macOS applications. macOS provides several ways to open and view PLIST file, for example xcode and "Property List Editor".
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.
Open plist file in Chrome browser gives the error line number.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With