Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Build Fails on Cocoapods Copy Resources

I recently added GPUImage to my podfile in Xcode, as follows:

pod 'GPUImage', '~> 0.1.4'

I don't think the problem I'm having is GPUImage specific, but rather has to do with the fact that GPUImage is the only pod I've added that includes extra resources.

My build keeps failing with "Shell Script Invocation Error, exit code 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

I think it's a problem with some sort of build path/pod configuration, but I tried for quite a while to fix it myself and am ready to ask for help... The real annoyance is that I'm not even using those resources! If I go into my Pods-resources.sh file and manually comment out all the "install_resource" lines, everything builds just fine and my project works fine. Of course, that is only a temporary/fragile solution, I'd like to just fix the issue at the source.

Any ideas on how to fix this issue?

Some things I've tried:

  • Xcode clean
  • Deletion of derived data
  • Removing GPUImage pod, then installing again
like image 902
MikeS Avatar asked Jun 12 '14 17:06

MikeS


1 Answers

I'm experiencing the same problem with cocoapods beta (--pre). Reinstall stable version:

sudo gem uninstall --all cocoapods
sudo gem install cocoapods
like image 138
Cfr Avatar answered Sep 21 '22 00:09

Cfr