未找到签名证书“​​iOS 开发” - 使用 bitrise/Fastlane 匹配构建应用程序版本

Posted

技术标签:

【中文标题】未找到签名证书“​​iOS 开发” - 使用 bitrise/Fastlane 匹配构建应用程序版本【英文标题】:No signing certificate “iOS Development” found - building app release with bitrise/Fastlane match 【发布时间】:2021-10-26 22:04:42 【问题描述】:

我在工作中继承了一个 React Native 项目,该项目使用 bitrise 构建应用版本并将其部署到应用商店,并使用 Fastlane match 管理所有证书和代码签名。

我突然开始在运行此命令的步骤上遇到以下问题 - xcodebuild "-exportArchive" "-archivePath" ...

Resolving CodeSignGroups...
Resolving CodeSignGroups...
Filtering CodeSignInfo groups for target capabilities
Filtering CodeSignInfo groups for export method
App was signed with NON Xcode managed profile when archiving,
only NOT Xcode managed profiles are allowed to sign when exporting the archive.
Removing Xcode managed CodeSignInfo groups
Failed to find Codesign Groups
generated export options content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>method</key>
        <string>development</string>
    </dict>
</plist> <nil>
[14:29:56] set -o pipefail && xcodebuild "-exportArchive" "-archivePath" "/var/folders/g2/xnd8hpjs50v433gfrybz2nxh0000gn/T/xcodeArchive091761673/Beryl.xcarchive" "-exportPath" "/var/folders/g2/xnd8hpjs50v433gfrybz2nxh0000gn/T/xcodeIPAExport525207508/exported" "-exportOptionsPlist" "/var/folders/g2/xnd8hpjs50v433gfrybz2nxh0000gn/T/xcodeIPAExport525207508/export_options.plist" | xcpretty
❌  error: exportArchive: No signing certificate "ios Development" found
❌  error: exportArchive: "Beryl.app" requires a provisioning profile with the Associated Domains, Near Field Communication Tag Reading, Sign in with Apple, and Push Notifications features.
❌  Error Domain=IDEProvisioningErrorDomain Code=9 ""xxx.app" requires a provisioning profile with the Associated Domains, Near Field Communication Tag Reading, Sign in with Apple, and Push Notifications features." UserInfo=IDEDistributionIssueSeverity=3, NSLocalizedDescription="Beryl.app" requires a provisioning profile with the Associated Domains, Near Field Communication Tag Reading, Sign in with Apple, and Push Notifications features., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.
❌  error: exportArchive: No signing certificate "iOS Development" found
❌  error: exportArchive: No signing certificate "iOS Development" found

我不太确定为什么会出错,因为之前一切正常。任何人都可以建议我如何调试这个或问题可能与这里有关吗?任何建议都会很棒,我对这一切都很陌生

【问题讨论】:

您是否将签名从自动更改为手动? 我得到了完全相同的错误。我们没有任何改变,构建刚刚开始失败。 @Kansway 我最终解决了这个问题。原来有一个更新,对 Bitrise 步骤进行了重大更改,你可以在这里阅读 - github.com/bitrise-steplib/steps-xcode-archive/releases/tag/… 这是对我来说破坏它的一个 - Removed auto-detect option of the distribution_method input. This option has been marked as deprecated for a while. The new default value is development, make sure you select the desired distribution method 是的!这是正确的,因为选择较早的版本可以解决问题。谢谢! 【参考方案1】:

我最终弄清楚了这个问题。

原来有一个更新,对 Bitrise 步骤进行了重大更改,您可以在此处阅读 - https://github.com/bitrise-steplib/steps-xcode-archive/releases/tag/4.0.0这是对我来说破坏它的一个

删除了 distribution_method 输入的自动检测选项。此选项已被标记为已弃用一段时间。新的默认值为开发,请确保选择所需的分发方式

【讨论】:

以上是关于未找到签名证书“​​iOS 开发” - 使用 bitrise/Fastlane 匹配构建应用程序版本的主要内容,如果未能解决你的问题,请参考以下文章

未找到签名证书“​​iOS Distribution”

未找到 ios 开发证书并且未找到未过期的配置文件

XCode 存档:“未找到代码签名身份:未找到有效的签名身份(即证书和私钥对)。”

XE6 & IOS开发之免证书真机调试:颁发属于自己的App签名证书(有图有真相)

“未找到包含任何钥匙串签名证书的未过期配置文件”

MSIS0037:未找到颁发者的签名验证证书