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

Ter*_*ker 5 xcode ios fastlane

目前,我直接在 Xcode 和 Fastlane 中使用相同的构建过程。但是,虽然它在 Xcode 中工作得很好(构建和归档都工作得很好),但在 Fastlane 中它会抛出一个错误并告诉我ARCHIVE FAILED。看起来 Fastlane 正在尝试查找 iOS 应用程序开发配置文件,而我认为它只找到应用程序分发配置文件。有没有办法解决这个问题,比如我可以使用命令行(没有 Fastlane)构建应用程序并使用 Fastlane 部署.ipa我创建的文件?

\n

Fastlane 日志中显示的错误:

\n
+--------------------------------------+-----------------------------------------------------------+\n|                                     Summary for gym 2.208.0                                      |\n+--------------------------------------+-----------------------------------------------------------+\n| workspace                            | ./platforms/ios/myproject.xcworkspace                      |\n| configuration                        | Release                                                   |\n| scheme                               | myproject                                                  |\n| output_directory                     | .                                                         |\n| output_name                          | output                                                    |\n| clean                                | true                                                      |\n| export_method                        | app-store                                                 |\n| skip_profile_detection               | false                                                     |\n| destination                          | generic/platform=iOS                                      |\n| silent                               | false                                                     |\n| skip_package_ipa                     | false                                                     |\n| skip_package_pkg                     | false                                                     |\n| build_path                           | /Users/runner/Library/Developer/Xcode/Archives/2022-08-01 |\n| result_bundle                        | false                                                     |\n| buildlog_path                        | ~/Library/Logs/gym                                        |\n| xcodebuild_formatter                 | xcpretty                                                  |\n| xcodebuild_command                   | xcodebuild                                                |\n| skip_package_dependencies_resolution | false                                                     |\n| disable_package_automatic_updates    | false                                                     |\n| use_system_scm                       | false                                                     |\n| xcode_path                           | /Applications/Xcode_13.2.1.app                            |\n+--------------------------------------+-----------------------------------------------------------+\n\n[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\n[20:25:35]: \xe2\x96\xb8 Clean Succeeded\n[20:25:46]: \xe2\x96\xb8 \xe2\x9d\x8c  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')\n[20:25:46]: \xe2\x96\xb8 ** ARCHIVE FAILED **\n
Run Code Online (Sandbox Code Playgroud)\n

代码签名设置:

\n
+-----------------------+-------------------------------------+\n|             Summary for code signing settings               |\n+-----------------------+-------------------------------------+\n| use_automatic_signing | true                                |\n| path                  | ./platforms/ios/myproject.xcodeproj |\n+-----------------------+-------------------------------------+\n
Run Code Online (Sandbox Code Playgroud)\n

小智 1

似乎您没有禁用自动签名,您需要启用它或转到您的 Xcode 项目,然后通过转到并选择正确的配置文件Your target>Signing & Capabilities和开发来为您尝试通过 Fastlane 构建的内容选择正确的配置文件团队