Does Xcode implicitly convert plists's to bina

2019-04-08 09:43发布

问题:

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).



标签: xcode plist