【问题标题】:Xcode 11 apple distribution accepted but impossible to build with flutterXcode 11 Apple 发行版已接受,但无法使用 Flutter 构建
【发布时间】:2021-02-17 02:14:23
【问题描述】:

我更新了我 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 中选择了良好的配置 profileee。

在这一步,一切都很好。

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

我有

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 年帐户,并更新了我的证书。不明白是什么问题

我很好地选择了我的物理设备 我尝试flutter clean,xcode build clean

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

【问题讨论】:

  • 您是否尝试过从设备上卸载应用程序并重新构建?也扑clean
  • 我将删除此帖子,因为我的解决方案是创建新项目。现在我可以建造了。不明白??????♂️

标签: xcode flutter provisioning-profile


【解决方案1】:

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

rm -rf ~/Library/Developer/Xcode/DerivedData/*

打开 Xcode 清理并重建

【讨论】:

    【解决方案2】:

    基于:

    以前安装的应用也可能具有相同的 Bundle 标识符是用不同的证书签名的。

    如果它是不同的证书,那么您需要信任您物理设备上的开发者证书。

    查看here的步骤:

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

    【讨论】:

      猜你喜欢
      • 2020-05-02
      • 2020-11-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-31
      • 2014-02-26
      • 1970-01-01
      • 1970-01-01
      • 2018-12-14
      相关资源
      最近更新 更多