上来先看报错
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/****/Library/Developer/Xcode/DerivedData/Runner-****/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-****.sh (in target 'Runner' from project 'Runner')
cd /Users/alingavriliuc/Documents/mdb-flutter-app/frontend/ios
/bin/sh -c /Users/****/Library/Developer/Xcode/DerivedData/Runner-****/Build/****/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-****.sh
mkdir -p /Users/****/Library/Developer/Xcode/DerivedData/Runner-****/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/Runner.app/Frameworks
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/openssl_grpc.framework" "/Users/****/Library/Developer/Xcode/DerivedData/Runner-****/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks"
building file list ... rsync: link_stat "/Users/****/Documents/mdb-flutter-app/frontend/ios/../../../IntermediateBuildFilesPath/****/iphoneos/openssl_grpc.framework" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/****/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
然后大神给了解决方案
Cocoapods现在有一个问题,因为Xcode 14.3现在在框架的符号链接中使用了相对路径。
要么等待Cocoapods1.12.1版本的发布,要么在您的www.example.com文件中进行此简单更改Pods-Runner-frameworks.sh
您可以在路径ios\Pods\Target Support Files\Pods-Runner\Pods-Runner-frameworks.sh中找到它
将:
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink "${source}")"
替换为:
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink -f "${source}")"
**注意添加了-f。
我试着根据大神方案走,解决了问题
来源参考:https://www.saoniuhuo.com/question/detail-2592825.html