xcode8 升级过后,第一时间更新了,为了适配ios10遇到以下几个坑:
1.ios10推送获取不到devicetoken 注意在xcode8上要打开push Notifications (每个人的情况可能不一样,只是把我遇到的和解决办法说明下)
2、打包过后ERROR ITMS-90682: "Invalid Bundle. The asset catalog at '$path'can't contain 16-bit or P3 assets if the app is targeting iOS releases earlier than iOS 9.3." 注意:和那些ERROR ITMS-90682: Invalid Bundle - The asset catalog at'Payload/XXXXX/Assets.car' can't contain 16-bit or P3 assets if the app supports iOS 9.3 or earlier不一样(注意路径) 之前是按照网上解决后者方法始终都找不到P3和16位图片后来参考这篇文章 把项目版本改为支持ios8.2(以前我的项目只支持8.3以上)发现打包就成功上传了,别的都没改(暗喜,具体原因以后有时间细细探讨)
3.接着到itunesconnect 发现没有构建的版本/此构建的版本无效(其实苹果公司这时会给你发邮件的,因为本公司开发者邮箱使用技术老大的,收到邮件也不吱声,想砍哭他)最后找到他才看到邮件,
邮件内容如下:
Dear developer,We have discovered one or more issues with your recent delivery for "Your App. 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 NSMicrophoneUsageDescription 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.Regards,The App Store team
意思是说关于隐私敏感性的数据都要在info.plist里说明,我的问题是访问麦克风没有说明,添上就好。