今天提交蘋果收到一封郵件大概是這樣的:
Missing Info.plist key - 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.
Though you are not required to fix the following issues, we wanted to make you aware of them:
Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.
很明顯,配置有問題庆揩。
直接在info.plist添加相應(yīng)說明的字段俐东,推送的話默認(rèn)是關(guān)閉的跌穗,如果有用到要在Xcode Capabilities中打開ON選項(xiàng)。
但是我要說的是虏辫,這個(gè)體驗(yàn)實(shí)在太糟糕了蚌吸。
為什么這些東西不能在編譯中報(bào)錯(cuò)出來?我都編譯打包完砌庄,上傳完蘋果羹唠,傳了好多遍,然后發(fā)現(xiàn)后臺(tái)還是沒有出現(xiàn)相應(yīng)的BUILD構(gòu)建版本娄昆。無意中打開了關(guān)聯(lián)郵箱才知道有這個(gè)問題佩微。
太惡心人了吧,如果我不打開郵箱那一萬年都找不到問題萌焰。