Fastlane错误:Xcode找不到任何与'*'匹配的iOS App Development配置文件

au9on6nz  于 12个月前  发布在  iOS
关注(0)|答案(1)|浏览(130)

目前,我使用相同的过程直接在Xcode和Fastlane中构建。(构建和归档都工作正常),在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 |
+-----------------------+-------------------------------------+

kx1ctssn

kx1ctssn1#

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

相关问题