没有找到“iOS Development”签名证书 - 使用bitrise/Fastlane match构建应用程序发布

4

我在工作中接手了一个React Native项目,使用bitrise构建和部署应用程序发布到应用商店,并使用Fastlane匹配管理所有证书和代码签名。

我突然在运行以下命令的步骤中遇到了以下问题 - 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

我不太确定为什么出现了这个错误,因为之前一切都正常。有人能建议我如何调试或者可能与这里的问题有关吗?任何建议都将不胜感激,因为我对这些都很新。


你可能把签名从自动改成了手动吗? - Nemanja Filipovic
我也遇到了完全相同的错误。我们这边没有做任何更改,构建过程突然就失败了。 - Kansway
1
@Kansway最终我找到了问题所在。原来Bitrise步骤有一个破坏性的更新,你可以在这里阅读 - https://github.com/bitrise-steplib/steps-xcode-archive/releases/tag/4.0.0这就是导致问题的那个 -移除了distribution_method输入的自动检测选项。该选项已经被标记为过时一段时间了。新的默认值是development,请确保选择所需的分发方式 - Safeer Hayat
是的!这是正确的,选择一个早期版本解决了问题。谢谢! - Kansway
2个回答

6
最终我找到了问题所在。
结果是Bitrise的步骤更新导致了重大更改,你可以在这里阅读 - https://github.com/bitrise-steplib/steps-xcode-archive/releases/tag/4.0.0 这就是导致问题的原因。

删除了 distribution_method 输入的自动检测选项。该选项已经被标记为过时一段时间了。新的默认值是 development,请确保选择所需的分发方法。


3
你在哪里找到这个步骤的?我也遇到了同样的问题。 - Joshua Hart

0

在 Xcode 归档和导出 iOS 步骤中,如果构建类型是企业版,则需要选择企业版,如果构建类型是应用商店,则需要选择应用商店。下面是参考截图。

Xcode Archive & Export for iOS step


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接