One of the things I’d like to do is to add in the key
ITSAppUsesNonExemptEncryption to my Info.plist for my iOS build. Defold
game.project lets me specify a path to an
Info.plist that I need to maintain, but I’d rather not do that since keeping it “in sync” with the
Info.plist that the Defold build process generates “out of the box” is likely to result in an overlooked source of bugs.
Ideally, it would be nice if the Defold build would generate its
Info.plist then let me specify a second
Info.plist which gets “laid on top of” the generated one, letting me override values or add new key/values from the one I specify? Maybe with a boolean option “merge” which by default can be “false” (to preserve backwards-compatibility) but if set to “true” would merge the two.
Right now, what I’m doing is doing a build with no
ios.infoplist set in
game.project and taking a copy of the default
Info.plist and stuffing it in
assets/ios/base.plist. I have my customizations in
assets/ios/custom.plist. I then use PlistBuddy to merge the two:
$ cd assets/ios $ rm Info.plist $ /usr/libexec/PlistBuddy -c "Merge base.plist" -c "Merge custom.plist" Info.plist
I can then set
/assets/ios/Info.plist and build.
Alternatively, is there a way to specify a “custom build command” that could kick off an executable (shell script, or any other platform-compatible build script) during the build process for each platform target, where I could stuff those commands, to automate this?
Thanks, everyone! I’m really enjoying getting to know how to do stuff in Defold. This is a fun game in and of itself