Fastlane 错误:Xcode 找不到任何与“*”匹配的 iOS 应用程序开发配置文件

问题描述 投票:0回答:1

目前,我直接在 Xcode 和 Fastlane 中使用相同的构建过程。但是,虽然它在 Xcode 中工作得很好(构建和归档都工作得很好),但在 Fastlane 中它会抛出一个错误并告诉我

ARCHIVE FAILED
。看起来 Fastlane 正在尝试查找 iOS 应用程序开发配置文件,而我认为它只找到应用程序分发配置文件。有没有办法解决它,就像我可以使用命令行(没有 Fastlane)构建应用程序并使用 Fastlane 部署我创建的
.ipa
文件?

Fastlane日志中显示的错误:

+--------------------------------------+-----------------------------------------------------------+
|                                     Summary for gym 2.208.0                                      |
+--------------------------------------+-----------------------------------------------------------+
| workspace                            | ./platforms/ios/myproject.xcworkspace                      |
| configuration                        | Release                                                   |
| scheme                               | myproject                                                  |
| output_directory                     | .                                                         |
| output_name                          | output                                                    |
| clean                                | true                                                      |
| export_method                        | app-store                                                 |
| skip_profile_detection               | false                                                     |
| destination                          | generic/platform=iOS                                      |
| silent                               | false                                                     |
| skip_package_ipa                     | false                                                     |
| skip_package_pkg                     | false                                                     |
| build_path                           | /Users/runner/Library/Developer/Xcode/Archives/2022-08-01 |
| result_bundle                        | false                                                     |
| buildlog_path                        | ~/Library/Logs/gym                                        |
| xcodebuild_formatter                 | xcpretty                                                  |
| xcodebuild_command                   | xcodebuild                                                |
| skip_package_dependencies_resolution | false                                                     |
| disable_package_automatic_updates    | false                                                     |
| use_system_scm                       | false                                                     |
| xcode_path                           | /Applications/Xcode_13.2.1.app                            |
+--------------------------------------+-----------------------------------------------------------+

[20:25:28]: $ set -o pipefail && xcodebuild -workspace ./platforms/ios/myproject.xcworkspace -scheme myproject -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/runner/Library/Developer/Xcode/Archives/2022-08-01/output\ 2022-08-01\ 20.25.28.xcarchive clean archive | tee /Users/runner/Library/Logs/gym/myproject-myproject.log | xcpretty
[20:25:35]: ▸ Clean Succeeded
[20:25:46]: ▸ ❌  error: No profiles for 'com.myprojectapp.myproject' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.myprojecttapp.myproject'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'myproject' from project 'myproject')
[20:25:46]: ▸ ** ARCHIVE FAILED **

代码签名设置:

+-----------------------+-------------------------------------+
|             Summary for code signing settings               |
+-----------------------+-------------------------------------+
| use_automatic_signing | true                                |
| path                  | ./platforms/ios/myproject.xcodeproj |
+-----------------------+-------------------------------------+
ios xcode fastlane
1个回答
1
投票

似乎您没有禁用自动签名,您需要启用它或转到 Xcode 项目并为您尝试通过 Fastlane 构建的内容选择正确的配置文件,方法是转到

Your target>Signing & Capabilities
并选择正确的配置文件配置文件和开发团队

© www.soinside.com 2019 - 2024. All rights reserved.