我想使用 Codemagic 构建 iOS 应用程序,但出现错误消息

问题描述 投票:0回答:1

我想使用 Codemagic 构建 iOS 应用程序,但出现错误消息:

Did not find matching provisioning profiles for code signing!

No valid code signing certificates were found
You can connect to your Apple Developer account by signing in with your Apple ID
in Xcode and create an iOS Development Certificate as well as a Provisioning 
Profile for your project 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 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
  5- Trust your newly created Development Certificate on your iOS device
     via Settings > General > Device Management > [your new certificate] > Trust

For more information, please visit:
  https://developer.apple.com/library/content/documentation/IDEs/Conceptual/
  AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html

Or run on an iOS simulator without code signing

希望你能帮我解决这个问题

ios flutter build codemagic
1个回答
0
投票

要构建 ios 应用程序并分发它,您需要 2 个证书(1 个用于签名,1 个用于分发)和 1 个配置文件(应用程序商店分发配置文件)。您可以在 apple 网站 上创建它们并让 codemagic 获取它,但要做到这一点,您需要将 Apple 开发人员门户连接到团队集成中的 codemagic。并在 yml 中使用这些证书和配置文件。

执行此操作:首先查看此视频 这将告诉您如何将苹果密钥添加到 Codemagic。 之后生成上述 2 个证书和 1 个配置文件。之后使用 codemagic.yml 中的参考。为此,请查看此 doc 和此 video

© www.soinside.com 2019 - 2024. All rights reserved.