gpt4 book ai didi

Xcode 11 苹果发行版被接受但无法使用 flutter 构建

转载 作者:行者123 更新时间:2023-12-03 17:10:17 24 4
gpt4 key购买 nike

我更新了我的 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 年帐户,并更新了我的证书。我不明白有什么问题
我精心选择了我的物理设备
我尝试flutter clean,xcode build clean
如果我使用自动管理签名,Xcode 会选择 iOS 开发配置文件类型,这样我就可以构建和运行我的应用程序,但是如果我手动选择我的 Apple 发行版,则它不起作用

最佳答案

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

rm -rf ~/Library/Developer/Xcode/DerivedData/*
打开 Xcode Clean and Rebuild

关于Xcode 11 苹果发行版被接受但无法使用 flutter 构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64679148/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com