用Xcode的Archives面板Distribute到iTunes Connect时候报错:
The certificate for this server is invalid. You might be connecting to a server that is pretending to be “contentdelivery.itunes.apple.com” which could put your confidential information at risk.
然后用Safari打开iTunes Connect,发现很多图片无法显示,脚本也无法执行,抓取浏览器请求,发现有个itc.mzstatic.com的证书存在安全问题,疑似伪造。刚开始以为是绑了一些hosts的缘故,之后把DNS恢复成默认的好了,原来是FastApple的DNS会带来这个问题。现在我改用114.114.114.114了。
BTW, OSX上GameCenter登陆不上服务器也跟DNS有关,之前hosts里绑了127.0.0.1 ocsp.spo1.verisign.com,127.0.0.1 crl.verisign.net,去掉即可。