新版本Xcode (11.3)证书验证的个人理解
Xcode版本11.3.1
需要的证书类型一共3种:
- Apple Development Certificates
- Apple Distribution Certificates
- iOS Distribution Certificates
Q:在哪里可以看到自己有哪些证书和缺失哪些证书?
A:Xcode -> Preference -> 已登录的Apple ID -> Manage Certificates ...

Apple Development Certificates
在xcode登录账号并且在 Signing&Capabilities -> Signing 自动登录开发者账号后,
会在本地生成Apple Development Certificates证书
自动生成后,在“钥匙串”中会多出这3个证书:

并且在https://developer.apple.com/account/resources/certificates/list中也会自动新增一个带有你自己的电脑名的TYPE
为Development
的证书development.cer
。
有了这个证书仅仅表示你是这个账号下的其中一位开发者,
可以在本地开发,但还不能发布到HOC或者APP Store上。
Apple Distribution Certificates
从https://developer.apple.com/account/resources/certificates/list找到TYPE
为Distribution
的证书点进去并下载下来distribution.cer
双击后本地“钥匙串”会多出一个Apple Distribution
的证书
Q:如果安装Apple Distrbution后出现Missing Private Key

A:表示线上的这个证书不是从你的电脑上生成的,所以需要在xcode中再生成一次

.p12证书安装
如果有.p12证书,则直接双击.p12证书进行安装
⚠️注意:
如果遇到“iPhone has denied the launch request”
或者Unable to launch **
,
说明这个Apple Distribution Certificates
不是Development证书,而仅仅是一个分发证书,这个.p12证书不管用,还得自己xcode生成。
iOS Distribution Certificates
从https://developer.apple.com/account/resources/certificates/list找到TYPE
为iOS Distribution
的证书点进去并下载下来ios_distribution.cer
双击后本地“钥匙串”会多出一个iPhone Distribution
的证书
最终所有证书齐全后你就可以发布到APP Store上了
