xcode 未找到签名证书“iOS Development”-正在构建bitrise/Fastlane匹配的应用程序版本

r1zk6ea1  于 2022-11-18  发布在  iOS
关注(0)|答案(2)|浏览(289)

我在工作中继承了一个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

我不太清楚为什么会出错,因为之前一切都很正常。有人能给我建议吗?我该如何调试这个问题,或者这个问题可能与什么有关?任何建议都很好,我对这一切都很陌生

lmyy7pcs

lmyy7pcs1#

最后我终于弄明白了这个问题。
原来有一个更新与一个突破性的变化,以Bitrise步骤,你可以阅读这里-https://github.com/bitrise-steplib/steps-xcode-archive/releases/tag/4.0.0这是一个打破了它对我来说
删除了distribution_method输入的auto-detect选项。此选项已被标记为弃用一段时间。新的默认值为development,请确保选择所需的分发方法

4nkexdtk

4nkexdtk2#

在Xcode Archive & Export for iOS步骤中。如果构建类型为企业,则需要选择企业;如果构建类型为应用程序商店,则需要选择应用程序商店。以下是供参考的屏幕截图。

相关问题