-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS/iOS export] Add option to set custom Info.plist data. #87029
Conversation
It should probably mention what format is expected (maybe simply linking to the relevant Apple docs). |
1f640ea
to
225fbfb
Compare
Added link to the Apple docs, and example. |
How does it behave on export if the user puts invalid data / syntax errors? Do we export gracefully and then the .app would fail running? Is the error then clear enough? Edit: If we want to do some validation on our side, we could likely check that XMLParser is happy with the syntax at least. Probably not worth implementing support for validating everything Apple would do itself though. |
225fbfb
to
6fe8255
Compare
If it's completely invalid data, the app will run, but won't show info or have an icon. If it's valid fomatting but unknown keys/values, it will be ignored. |
It won't be enough, valid XML data is not necessarily valid part of |
You're right that it won't be enough to ensure it's a valid addition. But hopefully checking that it's valid xml should at least ensure the additions are correctly closed tags so the addition doesn't risk messing up the parsing of the entire Info.plist. If we can be reasonably sure about that it's a lesser problem if the content in the addition is just ignored if it's formatted incorrectly. |
Yeah if it doesn't add significant complexity to the code, I think just validating that the syntax is valid XML would be enough. |
We actually have a dedicated PList parser for ad-hoc code signing (which can give more verbose error output than XMLParser), so I guess it probably better to use it. |
6fe8255
to
b34ba0c
Compare
b34ba0c
to
4910772
Compare
Added validation using PList parser from ad-hoc code signer, most likely it won't catch every error, since it's not designed to for validation, but should reject completely invalid data. |
Thanks! |
Fixes godotengine/godot-proposals#8848