我最近在Xcode的Podfile中加入了GPUImage,如下所示:
pod 'GPUImage', '~> 0.1.4'
我认为我遇到的问题并不是GPUImage特定的,而是因为GPUImage是我添加了额外资源唯一的pod。
"Shell脚本调用错误,退出码23"导致我的构建失败。
./Pods/GPUImage/framework/Resources/lookup.png
./Pods/GPUImage/framework/Resources/lookup_amatorka.png
./Pods/GPUImage/framework/Resources/lookup_miss_etikate.png
./Pods/GPUImage/framework/Resources/lookup_soft_elegance_1.png
./Pods/GPUImage/framework/Resources/lookup_soft_elegance_2.png
building file list ... rsync: link_stat "/Pods/GPUImage/framework/Resources/lookup.png" failed: No such file or directory (2)
rsync: link_stat "/Pods/GPUImage/framework/Resources/lookup_amatorka.png" failed: No such file or directory (2)
rsync: link_stat "/Pods/GPUImage/framework/Resources/lookup_miss_etikate.png" failed: No such file or directory (2)
rsync: link_stat "/Pods/GPUImage/framework/Resources/lookup_soft_elegance_1.png" failed: No such file or directory (2)
rsync: link_stat "/Pods/GPUImage/framework/Resources/lookup_soft_elegance_2.png" 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 /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
Command /bin/sh failed with exit code 23
我认为这是某种构建路径/ pod 配置的问题,但我花了很长时间自己尝试修复它,现在准备寻求帮助...真正让人烦恼的是,我甚至没有使用那些资源!如果我进入我的 Pods-resources.sh 文件并手动注释掉所有的 "install_resource" 行,一切都能够成功编译,我的项目也能够正常运行。当然,这只是一个临时/脆弱的解决方案,我想只是从源头上解决这个问题。
你有什么解决这个问题的想法吗?
我尝试过以下一些方法:
- 清理 Xcode
- 删除生成数据
- 移除 GPUImage pod,然后重新安装