How to do Notarization Now Nov 1 23 Sonoma

Das Goravani goravanis at gmail.com
Thu Nov 2 20:13:46 UTC 2023


I could not code sign with Sonoma even while using the commands I paste below.

I was able to run these commands on Catalina with an older XCODE today. 

I was then able to notarize using the Notary Tool with the command given in the original post in this thread.

So I had success today albeit with a Virtual Machine of Catalina. 


Here are updated code signing commands. These are for 10.22 and should work on Sonoma but they just don’t for me. I get the detritus error. 


Here’s updated code signing commands:

I got these from another developer who got them from Omnis. 

These assume your app, and entitlements documents, are in the same directory and that you run this as a script first switching to that directory.

In other words or for example:

CD ~/Desktop/Deploying/
SH ~/Desktop/Deploying/MyNotarizationScript.sh

MyAppName.app is the name of your application
MYCOMPANY is your company name as it is with your Apple ID, usually just your name
XXXXXXX is your team ID.

----------------------

#!/usr/bin/env bash

xattr -r -c MyAppName.app

codesign -f -o runtime --entitlements standard_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app/Contents/MacOS/xcomp/obrowser.u_xcomp/Contents/Frameworks/Chromium\ Embedded\ Framework.framework/Libraries/*

codesign -f -o runtime --entitlements extended_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app/Contents/Resources/remotedebug/node

codesign -f -o runtime --entitlements extended_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app/Contents/Resources/python/lib/python2.7/config/libpython2.7.a

codesign -f -o runtime --entitlements extended_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app/Contents/Resources/python/lib/python2.7/config/python.o

codesign -f -o runtime --entitlements extended_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app/Contents/lib/*

codesign -f --deep -o runtime --entitlements standard_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app

codesign -f -o runtime --entitlements extended_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app/Contents/MacOS/xcomp/obrowser.u_xcomp/Contents/Frameworks/obrowser\ Helper.app

codesign -f -o runtime --entitlements standard_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app/Contents/MacOS/xcomp/obrowser.u_xcomp

codesign -f -o runtime --entitlements standard_entitlements.plist --timestamp --verbose -s "Developer ID Application: MYCOMPANY (XXXXXXXXX)" MyAppName.app

codesign -vv --deep --strict MyAppName.app




More information about the omnisdev-en mailing list