我试图存档我的flutter应用程序以将其导出到Apple Store。该应用程序可以正常运行,但存档过程失败。
Xcode是我可以下载的最新版本(版本14.3(14E222b))Flutter已更新
我尝试了这些命令来解决这个问题:
flutter upgrade
flutter clean
flutter pub get
cd ios
pod deintegrate
rm -f Podfile.lock
pod install
pod update
pod install
sudo gem install cocoapods
sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc
在这些命令之后,我进入Xcode,删除DerivedData,清理构建文件夹,将最小部署更改为Pod〉FMDB〉General〉Minimum Deployment〉set to 12.0
现在,我正在测试构建一个档案。
30秒后(平均),我得到了这个错误:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/mateo/Library/Developer/Xcode/DerivedData/Runner-dehetosspbhbthhgdgvjmdurocom/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-B1164030238D389C328552D1.sh (in target 'Runner' from project 'Runner')
cd /Users/mateo/Documents/Dev/App-VE-app/ios
/bin/sh -c /Users/mateo/Library/Developer/Xcode/DerivedData/Runner-dehetosspbhbthhgdgvjmdurocom/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-B1164030238D389C328552D1.sh
mkdir -p /Users/mateo/Library/Developer/Xcode/DerivedData/Runner-dehetosspbhbthhgdgvjmdurocom/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/FMDB.framework" "/Users/mateo/Library/Developer/Xcode/DerivedData/Runner-dehetosspbhbthhgdgvjmdurocom/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks"
building file list ... rsync: link_stat "/Users/mateo/Documents/Dev/App-VE-app/ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FMDB.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/810eba08-405a-11ed-86e9-6af958a02716/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
2条答案
按热度按时间5kgi1eie1#
请打开xcode并单击左侧面板上的Pods-Runner-frameworks文件。
转到44行
更改为(add -f)
清理生成文件夹并再次运行。
t1rydlwq2#
这个问题似乎是最近才出现的,对我来说效果很好的解决方案是回到Xcode14.2
如果我找到了其他解决方案,我会更新这篇文章。