Loading...
Loading...
Compare original and translation side by side
asc auth loginASC_*asc auth loginASC_*security find-identity -v -p codesigning | grep "Developer ID Application"security find-identity -v -p codesigning | grep "Developer ID Application"codesignxcodebuildundefinedcodesignxcodebuildundefinedundefinedundefinedcodesign --deep --force --options runtime --sign "Developer ID Application: YOUR NAME (TEAM_ID)" /path/to/any.app 2>&1codesign --deep --force --options runtime --sign "Developer ID Application: YOUR NAME (TEAM_ID)" /path/to/any.app 2>&1xcodebuild archive \
-scheme "YourMacScheme" \
-configuration Release \
-archivePath /tmp/YourApp.xcarchive \
-destination "generic/platform=macOS"xcodebuild archive \
-scheme "YourMacScheme" \
-configuration Release \
-archivePath /tmp/YourApp.xcarchive \
-destination "generic/platform=macOS"<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>developer-id</string>
<key>signingStyle</key>
<string>automatic</string>
<key>teamID</key>
<string>YOUR_TEAM_ID</string>
</dict>
</plist>xcodebuild -exportArchive \
-archivePath /tmp/YourApp.xcarchive \
-exportPath /tmp/YourAppExport \
-exportOptionsPlist ExportOptions.plist.app<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>developer-id</string>
<key>signingStyle</key>
<string>automatic</string>
<key>teamID</key>
<string>YOUR_TEAM_ID</string>
</dict>
</plist>xcodebuild -exportArchive \
-archivePath /tmp/YourApp.xcarchive \
-exportPath /tmp/YourAppExport \
-exportOptionsPlist ExportOptions.plist.appcodesign -dvvv "/tmp/YourAppExport/YourApp.app" 2>&1 | grep -E "Authority|Timestamp"codesign -dvvv "/tmp/YourAppExport/YourApp.app" 2>&1 | grep -E "Authority|Timestamp"ditto -c -k --keepParent "/tmp/YourAppExport/YourApp.app" "/tmp/YourAppExport/YourApp.zip"ditto -c -k --keepParent "/tmp/YourAppExport/YourApp.app" "/tmp/YourAppExport/YourApp.zip"asc notarization submit --file "/tmp/YourAppExport/YourApp.zip"asc notarization submit --file "/tmp/YourAppExport/YourApp.zip"asc notarization submit --file "/tmp/YourAppExport/YourApp.zip" --waitasc notarization submit --file "/tmp/YourAppExport/YourApp.zip" --waitasc notarization submit --file "/tmp/YourAppExport/YourApp.zip" --wait --poll-interval 30s --timeout 1hasc notarization submit --file "/tmp/YourAppExport/YourApp.zip" --wait --poll-interval 30s --timeout 1hasc notarization status --id "SUBMISSION_ID" --output tableasc notarization status --id "SUBMISSION_ID" --output tableasc notarization log --id "SUBMISSION_ID"curl -sL "LOG_URL" | python3 -m json.toolasc notarization log --id "SUBMISSION_ID"curl -sL "LOG_URL" | python3 -m json.toolasc notarization list --output table
asc notarization list --limit 5 --output tableasc notarization list --output table
asc notarization list --limit 5 --output tablexcrun stapler staple "/tmp/YourAppExport/YourApp.app"undefinedxcrun stapler staple "/tmp/YourAppExport/YourApp.app"undefinedundefinedundefined| Format | Use Case |
|---|---|
| Simplest; zip a signed |
| Disk image for drag-and-drop install |
| Installer package (requires Developer ID Installer certificate) |
| 格式 | 使用场景 |
|---|---|
| 最简单的方式;对已签名的 |
| 用于拖放安装的磁盘镜像 |
| 安装包(需要Developer ID Installer证书) |
.pkgproductsign --sign "Developer ID Installer: YOUR NAME (TEAM_ID)" unsigned.pkg signed.pkgasc notarization submit --file signed.pkg --wait.pkgproductsign --sign "Developer ID Installer: YOUR NAME (TEAM_ID)" unsigned.pkg signed.pkgasc notarization submit --file signed.pkg --waitmethod: developer-idmethod: developer-id--timestampcodesignxcodebuild -exportArchivecodesign--timestampxcodebuild -exportArchiveASC_UPLOAD_TIMEOUT=5m asc notarization submit --file ./LargeApp.zip --waitASC_UPLOAD_TIMEOUT=5m asc notarization submit --file ./LargeApp.zip --waitasc notarization log --id "SUBMISSION_ID"asc notarization log --id "SUBMISSION_ID"asc notarizationxcrun notarytoolasc--helpasc notarization submit --helpasc notarizationxcrun notarytoolasc--helpasc notarization submit --help