Does Xcode implicitly convert plists's to binary format?

徘徊边缘 提交于 2020-01-22 20:49:09

问题


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.


回答1:


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.




回答2:


For everyone who is facing the Localizable.strings binary format, here is a link helped me: link

You will find the properties under Build Settings -> Packaging section (with All option).



来源:https://stackoverflow.com/questions/12358502/does-xcode-implicitly-convert-plistss-to-binary-format

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!