Xcode plist 文件总是忘记类型名称
我有许多包含项目中字典的 Plist 文件,我发现它们确实忘记了各种条目的数据类型并默认为 NSString。
例如,我可能有一个 PLIST,其中包含一个字典,其中多个键设置为 NSNumber 类型,关闭并重新打开 Xcode 后,它们都默认为 NSString。
这是一个已知问题吗?我有办法避免吗?每次重新启动 Xcode 时更改数十个值的类型非常烦人。
I have numerous Plist files that contains dictionaries in a project and I find that they reliably forget the data type of various entries and default to NSString.
For example, I might have a PLIST containing a dictionary with several keys set to a type of NSNumber, and after closing and reopening Xcode they all get defaulted to NSString.
Is this a known issue? Is there a way I can avoid it? Changing the types of dozens of values every time I restart Xcode gets pretty annoying.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 Xcode 3 的错误。文件本身实际上并没有被损坏,Xcode 只是错误地解释了文件。数字仍然是数字,应用程序也同样对待它们,但当从组树中打开时,Xcode 将它们报告为字符串。
This is an Xcode 3 bug. The file itself does not actually get corrupted, Xcode merely interprets the file wrongly. Numbers are still numbers and the app treats them as such, but Xcode reports them as strings when opened from the Group Tree.