Codemagic: Ios构建-没有找到有效的代码签名证书



我没有Mac也没有Iphone,我正试图通过codemagic构建和签名并将flutter应用程序分发到IOS应用程序商店。

我已经有一个API密钥,并通过web界面启用自动签名,我一直得到这个错误,虽然,任何想法如何解决它没有Xcode?

我可以访问苹果开发者帐户。我使用的是发布模式,"构建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

很可能你没有在Apple Developer Center创建证书。假设你正在使用API密钥,在调试或配置模式下构建,你需要使用Apple开发证书(转到证书,标识符&概要文件→证书→+→苹果开发)和生产证书在发布模式下构建(证书,标识符和;概要文件→证书→+→苹果分布)。但是无论如何你不能在没有Mac设备的情况下创建它们,因为创建证书需要"证书签名请求";要在某个步骤上载的文件。此文件只能通过Macbook或iMac上的Keychain工具创建

乌利希期刊指南:

证书创建需要"证书签名请求";上传文件

windows指南:

  • https://www.youtube.com/watch?v=0iLtDb2ZKAE
  • https://subscription.packtpub.com/book/application_development/9781849691383/1/ch01lvl1sec11/generating-a-certificate-signing-request-using-windows
  • Linux:

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

对于那些挣扎于此的人,只需ctrl+shift+F PRODUCT_BUNDLE_IDENTIFIER并将其更改为app Store Connect中的应用bundle标识符。

旧//

PRODUCT_BUNDLE_IDENTIFIER = com.example.testApp

新//

PRODUCT_BUNDLE_IDENTIFIER = com.myapp.bundlename

只需对每个PRODUCT_BUNDLE_IDENTIFIER值执行此操作。

最新更新