I generate plist file for my application from file in csv format.
我从csv格式的文件生成我的应用程序的plist文件。
Everything seems to be correct but when I try to build application or open plist file in XCode i Get an error informing that:
一切似乎都是正确的但是当我尝试在XCode中构建应用程序或打开plist文件时我收到错误通知:
mydata.plist:0: error: reading plist: The data couldn’t be read because it has been corrupted.
mydata.plist:0:错误:读取plist:无法读取数据,因为它已损坏。
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?
是否可以验证文件并获取哪些行不正确的信息?
2 个解决方案
#1
104
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.
它会告诉你问题所在并给你一个行号。
#2
0
Open plist file in Chrome browser gives the error line number.
在Chrome浏览器中打开plist文件会显示错误行号。
#1
104
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.
它会告诉你问题所在并给你一个行号。
#2
0
Open plist file in Chrome browser gives the error line number.
在Chrome浏览器中打开plist文件会显示错误行号。