简体   繁体   English

无法更改info.plist,Xcode 5.1中的项目类型

[英]Can’t change types of items in info.plist, Xcode 5.1

In Xcode 5.1 I tried to add some new fields, but couldn't change their types. 在Xcode 5.1中,我尝试添加一些新字段,但无法更改其类型。 With key and value everything is ok. 有了关键和价值,一切都还可以。 Here is some screenshots(this is MyApp-Info.plist): 这是一些截图(这是MyApp-Info.plist): 单击类型不执行任何操作

在控制点击菜单中同样的事情

Is it a bug, or I'm doing something wrong? 这是一个错误,还是我做错了什么? Other .plist files are ok. 其他.plist文件也可以。

Thanks in advance. 提前致谢。

It is not a bug. 不是一个bug。 Certain Values In Info.Plist are required by iOS to be a certain type and simply can't be changed, thats why your other plists work. iOS中要求Info.Plist中的某些Info.Plist某种类型,并且根本无法更改,这就是您的其他plist工作的原因。

You have to change the property list's type in order to fully modify it through Xcode. 您必须更改属性列表的类型才能通过Xcode完全修改它。 The info.plist type locks certain keys, and you can get around this by changing the list's type to None . info.plist类型锁定某些键,您可以通过将列表的类型更改为None来解决此问题。 Although, it is worth saying that some of these value's types aren't meant to be modified. 虽然,值得一提的是,这些值的某些类型并不意味着要修改。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM