升级Xcode 11.2遇到的坑
2019-11-12 本文已影响0人
RiberWang
最近因为手机系统升级了最新,所以把Xcode也升级到了最新。打包上传App的时候出现以下情况:
App Store Connect Operation Error
ERROR ITMS-90534: "Invalid Toolchain. Your app was built with an unsupported version of Xcode or SDK. If you plan to submit this build to the App Store, make sure you are using the GM version of Xcode 10.1 and the SDK for iOS 12.1 and watchOS 5.1, Xcode 7.1 and the SDK for tvOS 9, or Xcode 6 and the SDK for macOS 10.9 or later. If you are using an Xcode beta version to test your app, make sure you are using the latest supported version. For more information about supported beta versions, view the App Store Connect What's New page (https://developer.apple.com/app-store-connect/whats-new/)."
App Store Connect Operation Warning
WARNING ITMS-90703: "Deprecated Xcode Build. Due to resolved app archives issues, we have deprecated Xcode 11.2 on November 5, 2019. Download Xcode 11.2.1 or newer, rebuild your app and resubmit."
我刚更新的版本 Xcode 11.2
Xcode 11.2
目前App Store最新版是11.2,11.2.1还没有更新,只有去苹果官网下载11.2.1 GM Seed版本。
2019.11.12 17:20更
下载和安装了一天的Xcode 11.2.1后,打包问题终于解决。打包成功后,苹果发了一封邮件提示以下问题:
ITMS-90078: 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 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://deve<wbr>loper.apple.<wbr>com/library/<wbr>content/docu<wbr>mentation/Ne<wbr>tworkingInte<wbr>rnet/Concept<wbr>ual/RemoteNo<wbr>tificationsP<wbr>G/HandlingRe<wbr>moteNotifica<wbr>tions.html#/<wbr>/apple_ref/d<wbr>oc/uid/TP400<wbr>08194-CH6-SW<wbr>1.](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.)
检查了一下Certificates(证书)和Identifiers(标识符)以及Profiles(描述文件),都没有问题。然后看了一下Xcode的Signing&Capabilities,Remote notifications也是勾选的,真的很奇怪。于是百度了一下,才找到原因。
解决方法:
-
打开Targets设置Signing&Capabilities,点击Capability
Targets设置 -
找到或搜索push双击,工程目录左侧能看到证书文件说明就成功添加了推送证书
添加推送证书
这个推送证书很久之前就没了,不知道是不是这个版本Xcode的问题。
注意:更新完Xcode用到libstdc++.6.0.9库的一定要去添加
下载和安装可参考升级Xcode 10遇到的坑