当我想从Xcode中按Archive按钮时,它给出了UNRELAVANT这个错误:
命令PhaseScriptExecution失败,退出代码为非零
我该如何解决这个问题?我试过:
flutter clean
flutter pub get
flutter pub cache repair
delete podfile.lock
pod install
pod update
pod repo update
pod reintegrate
等等。我还检查了应用程序可以成功运行模拟器和真实的设备。我不能把它存档,我需要你的帮助,亲爱的社区。
谢谢
完整错误:
building file list ... rsync: link_stat "/Users/sahinefe/Documents/Github/kafile-app/ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/device_info_plus.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/aaefcfd1-5c95-11ed-8734-2e32217d8374/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
1条答案
按热度按时间3lxsmp7m1#
这是XCode 14.3的一个问题,你需要更新cocoapods来修复它:
sudo gem install cocoapods
如果这不起作用,请转到
/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh
并替换source="$(readlink "${source}")"
与
source="$(readlink -f "${source}")"
编辑和提醒:您需要在每次执行归档之前执行此重命名过程,以防更新cocoapods不起作用