Xcode8上传构建版本不显示,Xcode7.3更新Xcode8的二三事

昨天想学学react native 然后按着官网安装环境,必须要更新Xcode,更新之后老板让我更个版本,在更版本的时候遇到了好多问题,总结到这里

1. Error:(nullable NSError *)error报错

Xcode8改版之后不需要再写nullable这个了,所以把nullable删了就行了

2. 上传app store构建版本不出现,苹果发送邮件


iTunes Connect: Your app "" has one or more issues
显示详情iTunes Store
Dear developer,
We have discovered one or more issues with your recent delivery for "". To process your delivery, the following issues must be corrected:
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription 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.
Once the required corrections have been made, you can then redeliver the corrected binary.

发现是xcode8的隐私政策,必须要在plist里声明使用的获取手机的权限,我发现手机权限确实没有,然后加上了发现最基本的三个获取权限必须全都必须得声明info.plist声明增加:

Xcode8上传构建版本不显示,Xcode7.3更新Xcode8的二三事_第1张图片
添加授权信息

当然
这里也要写

把这两个都写上,应该就没事,当然看看发过来的邮件翻译过来,发现这个没写上NSMicrophoneUsageDescription加上应该就好了。
希望共同进步,最近在研究react native ,有好的项目可以推荐推荐1

你可能感兴趣的:(Xcode8上传构建版本不显示,Xcode7.3更新Xcode8的二三事)