【问题标题】:error: No profile for team '***' matching 'match AdHoc com.reddwarf.musicapp' found: Xcode couldn't find any provisioning profiles matching错误:没有找到匹配“匹配 AdHoc com.reddwarf.musicapp”的团队“***”的配置文件:Xcode 找不到任何匹配的配置文件
【发布时间】: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 配置:

【问题讨论】:

    标签: ios xcode github-actions fastlane


    【解决方案1】:

    我终于发现我们不应该登录构建,GitHub Action 不包含配置文件:

    flutter build ios --release --no-codesign --no-sound-null-safety
    

    然后在下一步使用 Fastlane 对应用进行签名。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-25
      • 1970-01-01
      • 2016-03-24
      • 2016-01-11
      • 2017-03-21
      • 1970-01-01
      相关资源
      最近更新 更多