[quote='763450021, OscarHedeby, /thread/763450, /profile/OscarHedeby'] If we insert the .appex file before notarization then we get an error that we are replacing existing signature. [/quote] That’s not an error; it’s just codesign telling you about the action it took. Consider: % cp /usr/bin/true MyTrue % codesign -s - MyTrue ; echo $? MyTrue: is already signed 1 % codesign -s - -f MyTrue ; echo $? MyTrue: replacing existing signature 0 The first codesign failed because the program was already signed; the second worked, because of the -f flag, but you then get the replacing existing signature message. Taking a step back, it’s critical that you insert the app before the final signing step of the container app. That way the appex is sealed over by the code signature. If you insert it after, you break the seal on the existing code signature and, as you’ve seen, bad things ensure. For general advice on how to sign code manually, see: Creating distribution-signed code for macOS
Topic:
Code Signing
SubTopic:
General
Tags: