问题描述
我尝试通过Appcenter设置Flutter APP的iOS版本。 它与GitHub链接,目前仅是存储库中的标准Flutter项目。
我在本地可以处理的日志中收到以下错误消息,但不知道如何在AppCenter中进行修复。
note: Constructing build description
error: /Users/runner/work/1/s/ios/Flutter/Release.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/runner/work/1/s/ios/Flutter/Release.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/runner/work/1/s/ios/Flutter/Release.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
** ARCHIVE FAILED **
##[error]Error: /usr/bin/xcodebuild failed with return code: 65
##[section]Finishing: Xcode build (signed)
##[section]Starting: Xcode build (signed)
除了正常的项目文件外,我还在/ ios目录中添加了一个带有以下参数的appcenter-post-clone.sh。
#!/usr/bin/env bash
#Place this script in project/ios/
# fail if any command fails
set -e
# debug log
set -x
cd ..
git clone -b beta https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH
flutter channel stable
flutter clean
flutter doctor
echo "Installed flutter to `pwd`/flutter"
flutter build ios --release --no-codesign
我真的不知道如何继续在这里……任何人都可以帮忙或有头绪吗?
目前我还没有任何依赖,这是我的pubspec.yaml的摘录
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
解决方法
好吧,这似乎是一个非常愚蠢的问题。...我没有将ExportOptions.plist添加到/ ios目录中。看来这就是为什么未触发appcenter-post-clone.sh并因此未加载大量配置的原因。
但现在是它的建筑物。