1. 签名app
codesign -fs "Developer ID Application: XXXXXXXX (XXXXXXXX)" --options=runtime XXXX.app --timestamp --deep --entitlements 'app-entitlements_merged.plist'
XXXX.app: replacing existing signature
2. 检验 codesign -dvvvv XXXX.app
3. 公证app
先压缩XXXX.app 压缩成XXXX.zip
xcrun notarytool submit XXXX.zip --keychain-profile "com.XX.XXXXXXX" --wait
当得到了
Successfully uploaded file id: 58d8ebe1-0990-4cad-9463-0c0668a7278d path: /Users/xiaowang/Desktop/XXXX/test/XXXX.zip Waiting for processing to complete. Current status: Accepted.............. Processing complete id: 58d8ebe1-0990-4cad-9463-0c0668a7278d status: Accepted
4. 打包pkg并且签名
productbuild --component XXXX.app /Applications --sign "Developer ID Installer: XXXXXXXX (XXXXXXXX)" --product XXXX.app/Contents/Info.plist aaaaa.pkg
5. 校验
pkgutil --check-signature aaaaa.pkg
6. 公证pkg
xcrun notarytool submit aaaaa.pkg --keychain-profile "com.XX.XXXXXXX" --wait
得到
Conducting pre-submission checks for aaaaa.pkg and initiating connection to the Apple notary service... Submission ID received id: a2493b61-6fa5-4a7b-b9a2-3cf881e1c2d5 Upload progress: 100.00% (95.5 MB of 95.5 MB) Successfully uploaded file id: a2493b61-6fa5-4a7b-b9a2-3cf881e1c2d5 path: /Users/xiaowang/Desktop/XXXX/test/aaaaa.pkg Waiting for processing to complete. Current status: Accepted............. Processing complete id: a2493b61-6fa5-4a7b-b9a2-3cf881e1c2d5 status: Accepted标签:XXXX,公证,--,app,签名,aaaaa,软件,id,pkg From: https://www.cnblogs.com/Galesaur-wcy/p/17999940