Info.plist格式不正确 [英] Info.plist not in correct format

查看:268
本文介绍了Info.plist格式不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在顺利完成我的iOS Xcode项目,然后突然尝试运行它,开始出现以下错误:

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 contents of '/Users/pavitarsidhu/Desktop/AmigoDash/SidebarDemo/AmigoDash-Info.plist': The data couldn’t be read because it isn’t in the correct format.

我真的很困惑.我查看了过去的StackOverflow问题,但仍然无法解决此问题.无论如何,有没有只是生成一个新的infoplist?你们怎么看?

I'm really confused. I've looked at the past StackOverflow questions and still have not been able to fix this. Is there anyway to just generate a new infoplist? What do you guys think?

推荐答案

plist文件是严格指定格式的XML文档. XML和属性列表结构都有非常严格的规则.如果您尝试手动编辑info.plist(即以文本形式),方法是说打开为">源代码":

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:

您不太可能正确使用此格式.因此,您应该始终使用打开方式">属性列表"来编辑info.plist:

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

这允许属性列表编辑器为您生成XML,并且不太可能在生成的XML结构中犯错误.当然,我想你可以仍然弄乱某些东西的价值...

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

这篇关于Info.plist格式不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆