Xcode Build Error on Cocoapods Copy Resources

I recently added a GPUImage to my subclause in Xcode, as shown below:

pod 'GPUImage', '~> 0.1.4' 

I don’t think that the problem that I encountered is related to a specific GPUImage, but rather because the GPUImage is the only module I support that includes additional resources.

My build does not work 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 this is a problem with some kind of pod path / configuration configuration, but I tried to fix it for a long time and am ready to ask for help ... The real annoyance is that I do not even use these resources! If I go into my Pods-resources.sh file and manually comment out all the install_resource lines, everything builds fine and my project works fine. Of course, this is only a temporary / fragile solution, I would just like to fix the problem in the source.

Any ideas on how to fix this?

Some things I tried:

  • Xcode clean
  • Delete derived data
  • Uninstall the GPUImage module, then install again
+6
source share
3 answers

I have the same problem with beta version of cocoapods ( --pre ). Reinstall the stable version:

 sudo gem uninstall --all cocoapods sudo gem install cocoapods 
+13
source

It’s good that the files are displayed in the repository, so perhaps you should check it in the local Pods directory.

You can also try to remove the directory and $pod install again.

0
source

For me, this was something different from Cfr's answer. I had an old Pod file that I deleted from the subfile, but somehow it was still on the diagrams. I removed it from managed circuits and worked.

0
source

Source: https://habr.com/ru/post/970763/


All Articles