I use launch constraints in a project. If I archive the project and save a copy of the app locally, everything works as expected but if I choose "Direct Distribution" and submit the app to Apple for notarization, the notarized app does not contain any launch constraints. What are I am doing wrong? Thanks.
Oh, that’s interesting. Launch constraints are baked into your code signature. When you export from an Xcode archive, Xcode re-signs your app and that represents an obvious point where they could get dropped.
The way this is meant to work is that Xcode passes the --preserve-metadata
option to codesign
and that preserves stuff like this. See codesign
man page for more details on that.
It’s possible that the version of Xcode you’re using hasn’t been updated to preserved launch constraints. Have you tried this with the latest Xcode 16 beta?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"