Info.plist not in correct format

老子叫甜甜 提交于 2019-12-04 02:39:00

A plist file is an XML document in a tightly specified format; both XML and the Property List structure have very strict rules. You can easily mess things up by accident if you attempt to edit the info.plist manually (i.e., as text) by saying Open As > Source Code:

You are unlikely to get this format right. Thus, you should always edit the info.plist with Open As > Property List:

This allows the property list editor to generate the XML for you, and it is unlikely to make a mistake in the resulting XML structure. Of course I suppose you could still mess up the value of something...

I encountered the same error. Took quite a while to figure it out. Here's how I did it:

  • Go to your terminal
  • Navigate to the location where the plist file is located e.g cd /user/desktop/app/Runner/info.plist
  • Then use the plutil command like so plutil info.plist

This will show you where the error is and you can go about correcting it. I hope that helps.

Dave Dempsey

I had this same issue and it was because plist files do not like &. You have to use & instead of an ampersand.

I had a merge conflict and didn't realize it so there were git annotations in the file. I couldn't open it as a property list but I opened as source code and fixed the issue that way.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!