CODEMAGIC:iOS构建 - 找不到有效的代码签名证书
我没有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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于为此而苦苦挣扎的人,只需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.
您最有可能没有在Apple开发人员中心创建的证书。假设您使用的是API密钥,以在调试或个人资料模式下构建您需要使用Apple开发证书(转到证书,标识符&配置文件 - >证书 - > + - + - > Apple开发证书)和生产证书在发行模式(证书,标识符&profiles - >证书 - > + - > Apple Distribution)中构建。
但是无论如何,您将无法在没有MAC设备的情况下创建它们,因为证书创建需要在某个步骤上载的“证书签名请求”文件。只能通过MacBook或iMac上的键链工具创建此文件:
证书创建需要上传的“证书签名请求”文件。
Windows的指南:
linux:linux:linux :linux:linux:
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 iMacUPD:
The certificates creation requires the "Certificate Signing Request" file to be uploaded.
Guides for windows:
Linux: