CODEMAGIC:iOS构建 - 找不到有效的代码签名证书

发布于 2025-02-04 03:33:32 字数 1685 浏览 4 评论 0 原文

我没有Mac,也没有iPhone,我正在尝试通过CodeMagic构建,签名并分发Flutter应用程序到iOS App Store。

我已经有一个API密钥并通过Web界面启用了自动签名,但是我一直遇到此错误,无论没有XCode如何修复它?

我可以访问Apple开发人员帐户。我正在使用发布模式,“构建iOS”步骤失败。我在Windows上,但我可以通过Windows上的WSL访问Debian,并且也可以访问Linux上的OpenSSL。

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
════════════════════════════════════════════════════════════════════════════════
No development certificates available to code sign app for device deployment


Build failed :|
Failed to build for iOS

I don't have a Mac nor an Iphone, I'm trying to build and sign and distribute the flutter app to IOS app store via codemagic.

I already have an API key and enabled auto signing via the web interface, I keep getting this error though, any idea how to fix it without Xcode?

I have access to Apple developer account. I'm using release mode, "Building IOS" step failed. I'm on windows but I have access to Debian via wsl on windows and I have access to OpenSSL on Linux as well.

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
════════════════════════════════════════════════════════════════════════════════
No development certificates available to code sign app for device deployment


Build failed :|
Failed to build for iOS

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心安伴我暖 2025-02-11 03:33:32

对于为此而苦苦挣扎的人,只需ctrl+Shift+F Product_Bundle_Identifier,然后使用App Store Connect使用App Bundle标识符更改它。

//旧

product_bundle_identifier = com.example.testapp

// new

Product_Bundle_Identifier = com.myapp.bundlename,

只需为每个product_bundle_isterifier value执行此操作即可。

To someone struggling with this, just ctrl+shift+F PRODUCT_BUNDLE_IDENTIFIER and change it with your app bundle identifier from App Store Connect.

// OLD

PRODUCT_BUNDLE_IDENTIFIER = com.example.testApp

// NEW

PRODUCT_BUNDLE_IDENTIFIER = com.myapp.bundlename

just do this for every PRODUCT_BUNDLE_IDENTIFIER value.

国际总奸 2025-02-11 03:33:32

您最有可能没有在Apple开发人员中心创建的证书。假设您使用的是API密钥,以在调试或个人资料模式下构建您需要使用Apple开发证书(转到证书,标识符&配置文件 - >证书 - > + - + - > Apple开发证书)和生产证书在发行模式(证书,标识符&profiles - >证书 - > + - > Apple Distribution)中构建。 但是无论如何,您将无法在没有MAC设备的情况下创建它们,因为证书创建需要在某个步骤上载的“证书签名请求”文件。只能通过MacBook或iMac 上的键链工具创建此文件

证书创建需要上传的“证书签名请求”文件。

Windows的指南:

linux:linux:linux :linux:linux:

openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest

The most likely you don't have a certificate created in Apple Developer Center. Assuming you're using an API key, to build in debug or profile mode you need to use Apple development certificate (go to Certificates, Identifiers & Profiles -> Certificates -> + -> Apple Development) and production certificate to build in release mode (Certificates, Identifiers & Profiles -> Certificates -> + -> Apple Distribution). But anyway you won't be able to create them without the Mac device, because the certificates creation requires the "Certificate Signing Request" file to be uploaded at some step. This file can only be created via Keychain tool on Macbook or iMac

UPD:

The certificates creation requires the "Certificate Signing Request" file to be uploaded.

Guides for windows:

Linux:

openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文