今天提交苹果收到一封邮件大概是这样的:
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添加相应说明的字段,推送的话默认是关闭的,如果有用到要在Xcode Capabilities中打开ON选项。
但是我要说的是,这个体验实在太糟糕了。
为什么这些东西不能在编译中报错出来?我都编译打包完,上传完苹果,传了好多遍,然后发现后台还是没有出现相应的BUILD构建版本。无意中打开了关联邮箱才知道有这个问题。
太恶心人了吧,如果我不打开邮箱那一万年都找不到问题。