Xcode 11 Apple发行版已接受,但无法快速构建

问题描述

我更新了1年的苹果开发经验并更新了证书

> Xcode 11 supports the new Apple Development and Apple distribution certificate types. These certificates support building,running,and
> distributing apps on any Apple platform. Preexisting iOS and macOS
> development and distribution certificates continue to work,however,> new certificates you create in Xcode 11 use the new types. PrevIoUs
> versions of Xcode don’t support these certificates. (45527608)

由于针对Xcode11的注释,我测试了创建Apple发行版而不是像以前那样创建iOS发行版

因此,我创建了这个,并在Xcode中选择了良好的供应配置文件

在这一步,一切都很好。

但是现在当我尝试运行应用程序

我有

No Provisioning Profile was found for your project's Bundle Identifier or your 
device. You can create a new Provisioning Profile for your project in Xcode for 
your team by:
  1- Open the Flutter project's Xcode target with
       open ios/Runner.xcworkspace
  2- Select the 'Runner' project in the navigator then the 'Runner' target
     in the project settings
  3- Make sure a 'Development Team' is selected. 
     - For Xcode 10,look under General > Signing > Team.
     - For Xcode 11 and newer,look under Signing & Capabilities > Team.
     You may need to:
         - Log in with your Apple ID in Xcode first
         - Ensure you have a valid unique Bundle ID
         - Register your device with your Apple Developer Account
         - Let Xcode automatically provision a profile for your app
  4- Build or run your project again

It's also possible that a prevIoUsly installed app with the same Bundle 
Identifier was signed with a different certificate.

但是我的配置文件在Xcode的签名和功能方面得到了很好的接受,团队选择得当,我与Apple ID的联系很好

写的时候:

"It's also possible that a prevIoUsly installed app with the same Bundle 
Identifier was signed with a different certificate."

我认为是这种情况,因为我续订了1年的帐户,并续签了我的证书。我不明白是什么问题

我选择了我的物理设备 我尝试扑干净,xcode构建干净

如果我使用自动管理签名,则Xcode选择一个iOS开发配置文件类型,以便我可以构建和运行我的应用程序,但是如果我手动选择我的Apple发行版,它将不起作用

解决方法

关闭Xcode,然后清除派生数据:

NullPointerException

打开Xcode清理并重建

,

基于:

先前安装的具有相同捆绑软件的应用程序也可能 标识符已使用其他证书签名。

如果它是其他证书,那么您需要在物理设备上信任该开发人员证书。

请参阅here中的步骤:

如果要为该证书打开SSL信任,请转至设置>常规>关于>证书信任设置。在“对根证书启用完全信任”下,打开对证书的信任。

enter image description here