When I type
pods install
or
pods update
I get the following error for one library:
Unable
In my case this was related to someone in my team committing their .xcworkspace
file to the repository, which meant running pod install
gave me the licence warnings but at the same time, did not install my pods properly.
This is how I resolved it:
Pods
folder from your project.xcworkspace
file, Podfile.lock
file DerivedData
folder Now run pod install
and the issue should be fixed.
I get this frequently. This works for me.
From terminal I run this altogether like this pod deintegrate && pod setup && pod install
run
pod deintegrate
then
pod cache clean --all
and
pod install
I just had this issue today, seems to have been caused by my cache being corrupted somehow; perhaps a charset issue? No idea, but the solution that worked for me was the bash script in this Gist.
It clears the cocoapods cache so that you get a fresh copy of all required when you next run pod install
. Fixed my problem immediately, confirming my suspicion, and hasn't reoccurred since.
If I copy the old pod.lock from an old git branch over the latest git branch I no longer see 'pods is out of sync', and I don't have to redo 'pod update' 'pod install' again.
Someone in the team updated pods, and therefore the pods.lock file changed version the scribbly alphanumeric characters next to the libraries we use.
What's up with that though? Seriously if we update our libraries and then change to a different branch we'll need to update pods and rebuild - Is this the way the process is intended to be for pods and git?
In my case, the pods which complained about the LICENSE file didn't actually have a LICENSE file in their folders. My steps to fix this:
License
part, and you will be redirected to the page where you will find an example of a copyright statement. Copy and replace the old copyright from the file you have in the folder now.[year]
field check the latest when the pod was updated.[copyright owner]
use what's written on the pods page under Author
.pod install
in the terminal.Use this image for reference.