当我在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配置:
的数据
2条答案
按热度按时间bwleehnv1#
我终于发现我们不应该在build中登录,GitHub Action不包含配置文件:
字符串
然后在下一步使用Fastlane签署应用程序。
3okqufwl2#
flutter build ios --release --no-codesign --no-sound-null-safety
这个解决方案帮助了我(没有--no-sound-null-safety
)谢谢 * 海豚 *