Cocoapods error: 'Unable to read the license file'

前端 未结 10 1729
挽巷
挽巷 2021-01-11 14:20

When I type

pods install

or

pods update

I get the following error for one library:

Unable

10条回答
  •  渐次进展
    2021-01-11 14:47

    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.

提交回复
热议问题