ios - 未找到签名证书“iOS 开发” - 使用 bitrise/Fastlane 匹配构建应用程序版本
问题描述
我在工作中继承了一个 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
我不太确定为什么会出错,因为之前一切都很好。任何人都可以建议我如何调试这个或问题可能与这里有关吗?任何建议都会很棒,我对这一切都很陌生
解决方案
我最终弄清楚了这个问题。
原来有一个更新,对 Bitrise 步骤进行了重大更改,您可以在此处阅读 - https://github.com/bitrise-steplib/steps-xcode-archive/releases/tag/4.0.0这是一个正在为我打破它
删除了 distribution_method 输入的自动检测选项。此选项已被标记为已弃用一段时间。新的默认值是开发,请确保选择所需的分发方式
推荐阅读
- c# - 将已发布文件的内容从 Angular 读取到 C#
- python - 使用 Python 进行 MSAL 身份验证显示未经授权的客户端?
- c - 在C中的循环内分配和释放内存
- java - 通过 Bson 过滤器时,Mongo 函数 updatemany() 不起作用
- python-3.x - Pycharm 在进行自动完成/类型检查时使用不完整的存根
- wmi - 如何在 Windows 中使用 powershell/脚本根据 MAC 地址分配静态 IP?
- c - 你能修改我的程序在c中使用“y/n”语句吗
- excel - 有没有办法使用 Excel 中的查找和替换功能来替换文本字符串中的第一个和最后一个条目?
- django - 如何在 Django 中制作可下载的 Excel 电子表格?
- conda - 为 ~/.conda/pkgs 目录设置路径