Xcode是否隐式地将plists的格式转换为二进制格式? [英] Does Xcode implicitly convert plists's to binary format?

查看:73
本文介绍了Xcode是否隐式地将plists的格式转换为二进制格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建过程中,Xcode是否将项目中的plists隐式转换为二进制?我认为它不是隐式执行此操作,但是很难确定.

Does Xcode implicitly convert plists in a project to binary during the building process? I don't think it does this implicitly but having a hard time determining for sure.

推荐答案

有一个名为属性列表输出编码"的构建设置(又名PLIST_FILE_OUTPUT_FORMAT),可用于告诉Xcode在执行时将复制的复制代码转换为其他格式一个构建.不过,默认值是与输入相同",因此除非您专门将该值更改为其他值,否则不应进行任何转换.如果您希望将plists转换为二进制文件,以节省空间和/或加载时间,只需在Xcode中目标的构建设置中将该设置更改为"binary"即可.

There is a build setting named "Property List Output Encoding" (a.k.a PLIST_FILE_OUTPUT_FORMAT) which can be used to tell Xcode to convert copied plists to a different format when performing a build. The default value is "same-as-input" though, so it shouldn't do any conversion unless you specifically change that value to something else. If you would like to have your plists converted to binary, to save space and/or load time, just change that setting to "binary" in your target's build settings in Xcode.

这篇关于Xcode是否隐式地将plists的格式转换为二进制格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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