總結(jié)了下上傳 iTunes Connect 失敗的原因释簿,主要介紹構(gòu)建版本上傳失敗昂拂。
1. Access privacy-sensitive data 隱私及敏感數(shù)據(jù)訪問權(quán)限未添加:
iOS10 開始柏腻,在你訪問照相機泊业、通訊錄逗扒、等等隱私以及敏感數(shù)據(jù)之前寥院,你必須
請求授權(quán)塔拳。否則你的app會在你嘗試訪問這些隱私時崩潰鼠证。Xcode會log這些:
This app has crashed because it attempted to access privacy-sensitive data without a
usage description. The app's Info.plist must contain an NSContactsUsageDescription
key with a string value explaining to the user how the app uses this data.
在提交構(gòu)建版本的時候也會因為權(quán)限問題,構(gòu)建版本不能成功上傳通過蝙斜。
關(guān)于隱私權(quán)限詳細(xì)問題建議參考iOS程序犭袁GitHub的這篇文章:iOS10AdaptationTips名惩。
添加完整的權(quán)限后,再次提交孕荠,構(gòu)建版本成功通過娩鹉。
2. App Icons 不完整。例如下圖郵件:
大概意思是缺少相關(guān)圖片資源文件稚伍。
需要哪些尺寸的 App Icon 呢:
- 通過 Xcode 創(chuàng)建一個 AppIcon