我最近在我的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”行,一切都会构建得很好并且我的项目工作正常。当然,这只是一个临时/脆弱的解决方案,我想从源头上解决问题。
关于如何解决这个问题有什么想法吗?
我尝试过的一些事情: