描述
今天在用Xcode 8提交app到 iTunes上時(shí),在打包提交成功后蕊梧,收到了iTunes connect的推送提示霞赫,Invalid Binary,然后找到apple發(fā)來的e-mail肥矢。如下:
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
Though you are not required to fix the following issues, we wanted to make you aware of them:
Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.
原來是沒有做iOS 10的適配端衰,按照要求一一適配。
總結(jié):
這個(gè)錯(cuò)誤如果你沒有收到iTunes connect的推送(我手機(jī)安裝了iTunes connect)甘改,或者開發(fā)者賬號(hào)的郵箱不在你手里旅东,你可能就會(huì)不發(fā)現(xiàn)這個(gè)問題,因?yàn)樗奶崾臼窃谔峤籌PA包到iTunes之后的幾分鐘內(nèi)十艾,如果是無效的玉锌,那么你的iTunes的構(gòu)建版本將永遠(yuǎn)出不來。我在簡(jiǎn)書上也找到了一篇適配iOS10的文章,里面有很多硬件訪問的描述需求
建議:
開發(fā)者安裝一下疟羹,手機(jī)版iTunes connect,方便收到所有提交過程的狀態(tài)禀倔。還有就是建議開發(fā)者擁有注冊(cè)開發(fā)者賬號(hào)的郵箱榄融,方便對(duì)于賬號(hào)的管理,和及時(shí)獲取apple的郵件提示救湖。(我就沒有這個(gè)郵箱-_-)