我在工作中接手了一个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
我不太确定为什么出现了这个错误,因为之前一切都正常。有人能建议我如何调试或者可能与这里的问题有关吗?任何建议都将不胜感激,因为我对这些都很新。
移除了distribution_method输入的自动检测选项。该选项已经被标记为过时一段时间了。新的默认值是development,请确保选择所需的分发方式
- Safeer Hayat