Xcode云:无法加载文件列表的内容:'/目标支持文件/Pods-Runner/Pods-Runner-frameworks-Release-input

anauzrmj  于 2023-05-30  发布在  其他
关注(0)|答案(1)|浏览(267)

我是Xcode Cloud的新用户。我今天开始使用它,在连接Xcode Cloud并构建之后,我得到了这样错误:

Unable to load contents of file list: '/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Release-output-files.xcfilelist'

Unable to load contents of file list: '/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Release-input-files.xcfilelist'

could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig' in search paths
Release.xcconfig:2

could not find included file 'Generated.xcconfig' in search paths
Release.xcconfig:3

在我的地方。一切正常。

kuarbcqp

kuarbcqp1#

这是一个与CocoaPods相关的错误。如果它在本地工作正常,错误应该在XcodeCloud上,并应该使用ci_post_clone. sh解决。
在我的例子中:
1.创建ci_post_clone. sh
1.在ci_post_clone. sh中放置pod decide和pod update
我就是这样消除了这个错误。
ci_post_clone. sh是Xcode Cloud在克隆Git仓库后运行的自定义克隆后构建脚本。
我使用以下URL作为参考:

Flutter,但以防万一,我将包括一个成功的ci_post_clone. sh。

#!/bin/sh

# The default execution directory of this script is the ci_scripts directory.
cd $CI_WORKSPACE # change working directory to the root of your cloned repo.

# Install Flutter using git.
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
export PATH="$PATH:$HOME/flutter/bin"

# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms.
flutter precache --ios

# Install Flutter dependencies.
flutter pub get

# Install CocoaPods using Homebrew.
HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates.
brew install cocoapods

cd ios
pod deintegrate
# Install CocoaPods dependencies.
pod update # run `pod install` in the `ios` directory.

flutter build ios --release --no-codesign
exit 0

相关问题