这个错误已经遇到好久次,每次都不记得。。。得好好记录一下
项目执行pod update或者pod install以后报错
报错信息如下:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/Library/Developer/Xcode/DerivedData/ImC-chtzkezcxbogmhhkvslhzplibqlb/Build/Intermediates.noindex/ArchiveIntermediates/ImC/IntermediateBuildFilesPath/ImC.build/Debug-iphoneos/ImC.build/Script-2372946BE9961F6297A15581.sh (in target 'ImC' from project 'ImC')
cd /Users/ios/xiaolNew/ImC
/bin/sh -c /Users/Library/Developer/Xcode/DerivedData/ImC-chtzkezcxbogmhhkvslhzplibqlb/Build/Intermediates.noindex/ArchiveIntermediates/ImC/IntermediateBuildFilesPath/ImC.build/Debug-iphoneos/ImC.build/Script-2372946BE9961F6297A15581.sh
mkdir -p /Users/Library/Developer/Xcode/DerivedData/ImC-chtzkezcxbogmhhkvslhzplibqlb/Build/Intermediates.noindex/ArchiveIntermediates/ImC/BuildProductsPath/Debug-iphoneos/ImC.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/AWSAuthCore.framework" "/Users/Library/Developer/Xcode/DerivedData/ImC-chtzkezcxbogmhhkvslhzplibqlb/Build/Intermediates.noindex/ArchiveIntermediates/ImC/InstallationBuildProductsLocation/Applications/ImC.app/Frameworks"
building file list ... rsync: link_stat "/Users/ios/xiaolNew/ImC/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AWSAuthCore.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/c2cb9645-dafc-11ed-aa26-6ec1e3b3f7b3/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
修改方案:
//在项目中搜索
source="$(readlink "${source}")"
位置大概在:项目路径/Pods/Target Support Files/Pods-ImCam/Pods-ImCam-frameworks.sh
修改如下:
source="$(readlink -f "${source}")"