Xcode Plist 错误
我正在生成一些 plist 文件以在我正在开发的应用程序中使用,但是我生成的所有 plist 文件都会导致以下构建错误:
命令 /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist 失败,退出代码为 1
但是,如果我使用 plist 属性编辑器打开 plist,然后重新保存 plist 文件,则会出现错误离开。 plist 属性编辑器也可以正确显示所有内容。 plist 编辑器是否向文件添加一些额外的元数据或 xcode 需要的内容?有人有什么想法吗?
I am generating some plist files for use in an app I am developing, however all of my generated plist files cause the following build error:
Command /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist failed with exit code 1
However, if I open the plist with the plist property editor and then re-save the plist file, the error goes away. The plist property editor also displays everything correctly. Does the plist editor add some extra metadata to the file or something that xcode requires? Anyone have any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过检查用于将 plist 从一种格式转换为另一种格式的 /usr/bin/plutil 也有一个 lint 命令,可能会节省一些时间。
Might save yourself some time by checking on /usr/bin/plutil used in converting plists from one format to another also has a lint command.
如果您生成(或手工制作)不满足 plist XML 架构的 XML .plist 文件,则会出现
copyplist failed with exit code 1
。空格不应该影响这一点,但滥用支持的标签会影响这一点。使用 plist 属性编辑器打开并保存文件将强制 XML 转换为正确的格式,但从长远来看,您可能希望隔离问题并修复 XML 生成器。 (或者如果您无法控制生成的 XML,则编写一个 XML 文件“修复程序”)
还建议检查您是否有空闲磁盘空间!
copyplist failed with exit code 1
will occur if you've generated (or hand-crafted) an XML .plist file that doesn't satisfy the plist XML schema. Whitespace shouldn't affect this but misusing the supported tags will.Using the plist property editor to open and save the file will force the XML into the right format, but long term you'll probably want to isolate the problem and fix your XML generator. (or write an XML-file "fixer" if you don't have control over the XML generated)
Checking you have spare disk space has also been suggested!