[quote=432290:@Paulo Vargas]Hello,
I know that Apple Notarization process will need to be done in all the applications running on the Mac from now, what I do not understand is what I need to do for this validation, I’ve never sent applications to MAS, all mine applications I personally install on my clients, my question is:
what I took to do besides having a developer account at Apple, I will have to put something in the Bundle Identifier or on Package Info of my Apps or something like this, how will the Apps I already have and are in XOJO be validated ?
I’m very confused by all this, could someone give me some help, Please.[/quote]
Basically what you will need to do is to codesign the binaries, package the installer (dmg, pkg or zip) and send it to the notarization service. After you are done, wait for the email to come to say that you can distribute the app and then issue the command to staple the notarization to the app.
This is my script template which I save as a .sh file so in the command line I just run it.
[quote]#!/bin/bash
cd /‘Developed Apps’/‘My App’
xattr -rc ‘My App.app’
cd /‘Developed Apps’/‘My App’/‘My App.app’/‘contents’/‘Frameworks’/‘XojoFramework.framework’/‘Versions’/‘A’
lipo -remove i386 XojoFramework -o XojoFramework
codesign -f -s ‘Developer ID Application: My Name’ XojoFramework
cd /‘Developed Apps’/‘My App’/‘My App.app’/‘contents’/‘Frameworks’
codesign -f -s ‘Developer ID Application: My Name’ *.dylib
codesign -f -s ‘Developer ID Application: My Name’ *.framework
cd /‘Developed Apps’/‘My App’/‘My App.app’/‘contents’/‘MacOS’
codesign -f -s ‘Developer ID Application: My Name’ *.dylib
cd /‘Developed Apps’/‘My App’
codesign -s ‘Developer ID Application: My Name’ --options runtime ‘My App.app’
/usr/local/bin/dmgcanvas /‘Developed Apps’/‘My App’/‘myapp.dmgCanvas’ /‘Developed Apps’/‘My App’/‘myapp.dmg’ -v ‘My App’
xcrun altool -t osx -f /‘Developed Apps’/‘My App’/‘myapp.dmg’ --primary-bundle-id ‘com.mycompany.myapp’ --notarize-app -u me@myemail.com -p myDeveloperToken[/quote]
Once you get the All Ok email from Apple then in command line issue this
Once that’s done, you can freely distribute your installer.