Apple 开发者证书类型:分发、开发与推送全解
Apple 提供多种证书类型,用于保障应用安全、设备授权和代码签名。
每种证书有其专属用途。
Apple 证书类型及用途
Section titled “Apple 证书类型及用途”在实际开发中,绝大多数场景只需 Apple Development 和 Apple Distribution。
其他类型适用于特殊需求,如 Apple Pay、Apple Wallet、App Store 外分发、或 macOS 低层开发(#developer-id-kext)。
应用开发与发布证书
Section titled “应用开发与发布证书”Apple Development
Section titled “Apple Development”用于调试和开发阶段。
为开发阶段在真机运行的构建签名。
需配合开发类型的 Provisioning Profile 使用。
Apple Distribution
Section titled “Apple Distribution”用于 App Store 上架发布。
为提交至 App Store、TestFlight 或 Ad Hoc/企业分发的构建签名。
取代了旧版 iOS Distribution 和 macOS Distribution。
macOS Development
Section titled “macOS Development”用于 macOS 应用开发。
现已由 Apple Development 替代。
Mac App Distribution
Section titled “Mac App Distribution”用于 Mac App Store 上架。
为通过 Mac App Store 分发的 macOS 应用签名。
Mac Installer Distribution
Section titled “Mac Installer Distribution”用于安装包(PKG)签名。
为 macOS 应用安装包(.pkg)签名。
Developer ID Application
Section titled “Developer ID Application”用于 App Store 外分发。
支持应用直接分发,Gatekeeper 校验。
Developer ID Installer
Section titled “Developer ID Installer”用于 App Store 外分发的安装包签名。
为直接分发的 .pkg 安装包签名。
Apple 服务类证书
Section titled “Apple 服务类证书”Pass Type ID / Pass Type ID NFC
Section titled “Pass Type ID / Pass Type ID NFC”用于 Apple Wallet 和 NFC。
为票据、卡券等签名,支持 NFC 服务。
Merchant ID Certificate
Section titled “Merchant ID Certificate”用于 Apple Pay。
集成 Apple Pay 必需。
用于签名交易,与 Apple Pay 服务器交互。
App Store Connect 开发者证书
Section titled “App Store Connect 开发者证书”IOS Development / tvOS Development / watchOS Development
Section titled “IOS Development / tvOS Development / watchOS Development”(已废弃)\
用于调试 iOS / tvOS / watchOS 应用。
现已由 Apple Development 替代。
iOS Distribution / tvOS Distribution / watchOS Distribution
Section titled “iOS Distribution / tvOS Distribution / watchOS Distribution”(已废弃)
用于发布 iOS / tvOS / watchOS 应用。
现已由 Apple Distribution 替代。
Developer ID KEXT
Section titled “Developer ID KEXT”用于签名内核扩展(.kext)
适用于 macOS 内核扩展签名。
Developer ID Application G2 / Developer ID KEXT G2
Section titled “Developer ID Application G2 / Developer ID KEXT G2”新一代 Developer ID 证书
自 macOS Catalina 起启用。
新项目建议仅使用 Apple Development 和 Apple Distribution,这两类证书已覆盖绝大多数场景。
Developer ID 证书仅在 Mac App Store 以外分发 macOS 应用时需要。
Apple 限制每种证书的有效数量(如分发证书每账号最多 2 个)。