错误:没有找到匹配“匹配 AdHoc com.reddwarf.musicapp”的团队“***”的配置文件:Xcode 找不到任何匹配的配置文件
Posted
技术标签:
【中文标题】错误:没有找到匹配“匹配 AdHoc com.reddwarf.musicapp”的团队“***”的配置文件:Xcode 找不到任何匹配的配置文件【英文标题】:error: No profile for team '***' matching 'match AdHoc com.reddwarf.musicapp' found: Xcode couldn't find any provisioning profiles matching 【发布时间】:2021-11-17 13:55:08 【问题描述】:当我使用此命令在 GitHub Actions 中构建 Flutter 应用程序时:
flutter build ios --release --no-sound-null-safety
显示如下错误:
Run flutter build ios --release --no-sound-null-safety
Building com.reddwarf.musicapp for device (ios-release)...
Upgrading AppFrameworkInfo.plist
Automatically signing iOS for device deployment using specified development team in Xcode project: ***
Running pod install... 3.7s
Running Xcode build...
Xcode build done. 7.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: No profile for team '***' matching 'match AdHoc com.reddwarf.musicapp' found: Xcode couldn't find any provisioning profiles matching '***/match AdHoc com.reddwarf.musicapp'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'Runner' from project 'Runner')
Encountered error while building for device.
Error: Process completed with exit code 1.
为什么会这样?我可以在我的本地机器上构建 XCode 成功。
$ ~/apps/flutter/bin/flutter build ios --release --no-sound-null-safety ‹ruby-2.7.2›
Changing current working directory to: /Users/dolphin/Documents/GitHub/flutter-netease-music
Building com.reddwarf.musicapp for device (ios-release)...
Upgrading AppFrameworkInfo.plist
Automatically signing iOS for device deployment using specified development team in Xcode project: 6JP4P88ZJB
Running pod install... 2,528ms
Running Xcode build...
└─Compiling, linking and signing... 18.0s
Xcode build done. 140.2s
Built /Users/dolphin/Documents/GitHub/flutter-netease-music/build/ios/iphoneos/Runner.app.
(base)
但我无法在 GitHub Actions 中构建,我应该如何解决这个构建问题?这是本地 xcode 配置:
【问题讨论】:
【参考方案1】:我终于发现我们不应该登录构建,GitHub Action 不包含配置文件:
flutter build ios --release --no-codesign --no-sound-null-safety
然后在下一步使用 Fastlane 对应用进行签名。
【讨论】:
以上是关于错误:没有找到匹配“匹配 AdHoc com.reddwarf.musicapp”的团队“***”的配置文件:Xcode 找不到任何匹配的配置文件的主要内容,如果未能解决你的问题,请参考以下文章
错误:错误:层次结构中没有找到匹配的视图:(标签值:是“电子邮件”并且视图具有有效的可见性=可见)
npm 错误 npm 错误!代码 ETARGET npm 错误! notarget 没有为 express@undefined4.16.3 找到匹配的版本