新 Xcode8打包发布应用

Xcode8 面世啦,升级以后要打包并上传未完的项目,

但是每次提交之后都是无效版本,这是什么情况呢。。。

登上QQ邮箱去看下有什么消息,果然苹果发来了邮件,

里面提到了

We have discovered one or more issues with your recent delivery for "xxxxx". To process your delivery, the following issues must be corrected:

Non-public API usage:

  • The app references non-public symbols in ComeToMe: _UICreateCGImageFromIOSurface.........
  • 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.......

什么意思呢,第一个是说app里面用私有API UICreateCGImageFromIOSurface了,

好嘛,想起来我app里面用了reveal ,删掉;

然后第二个问题说丢失了推送的“Entitlement”,这个是什么鬼呢,Xcode8有个新的改变,就是你在capabilities里面开通相应的功能时 bundle里面多出一个后缀为‘Entitlement’的文件,那么,怎么解决这个问题呢,在证书配置都正确的前提下,把有问题的功能关闭重新打开就行了。

好了问题解决了,打包上传。。。。

可是这次又是无效版本,我去,再去邮箱看看,额这回又来个邮件:

We have discovered one or more issues with your recent delivery for "xxxxxxxx". To process your delivery, the following issues must be corrected:

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 NSBluetoothPeripheralUsageDescription 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 NSMicrophoneUsageDescription 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.

Once these issues have been corrected, you can then redeliver the corrected binary.

什么意思呢,还记得,在Xcode7刚出世的一个改动嘛,就是必须在infoplist文件里面加几个属性,关于定位的NSLocationWhenInUseUsageDescription NSLocationAlwaysUsageDescription,这回也是这个意思,就是说你得在plist文件里面加上NSPhotoLibraryUsageDescription(相册),NSBluetoothPeripheralUsageDescription(蓝牙),NSMicrophoneUsageDescription(话筒),NSCameraUsageDescription(摄像头)的描述,具体value(字符窜)你写什么,就看你自己的了。

改完之后,打包上传,成功!


  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值