Info.plist not in correct format

前端 未结 4 1705
北海茫月
北海茫月 2021-02-20 12:36

I was working through my iOS Xcode project just fine, and then all of a sudden when I tried to run it, I started getting the error below:

error: couldn\'t parse         


        
4条回答
  •  無奈伤痛
    2021-02-20 13:01

    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:

    enter image description here

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

    enter image description here

    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...

提交回复
热议问题