Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods error: 'Unable to read the license file'

When I type

pods install

or

pods update

I get the following error for one library:

Unable to read the license file /Users/me/Documents/project/myproject/company/myproduct/Pods/OHAttributedLabel/OHAttributedLabel/LICENSE for the spec OHAttributedLabel (3.5.3)

Does anyone know why? I have been suggested:

pod repo remove master
pod setup

to no avail

like image 686
user1709076 Avatar asked Jun 06 '14 20:06

user1709076


1 Answers

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:

  1. First close Xcode.
  2. List item
  3. Delete the Pods folder from your project
  4. Delete the .xcworkspace file,
  5. Delete the Podfile.lock file
  6. And then finally, for good measure delete the DerivedData folder

Now run pod install and the issue should be fixed.

like image 177
Michael Gaylord Avatar answered Sep 19 '22 13:09

Michael Gaylord