Cocoapods error: 'Unable to read the license file'

前端 未结 10 1714
挽巷
挽巷 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:55

    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:

    1. Went to [project_name] -> Pods
    2. Opened a pod which already had a LICENSE file. Copied that file and pasted it inside the pod folder which is complaining.
    3. Found the complaining pod on cocoapods.org
    4. On the bottom of the page, there is written who owns the copyright (MIT, Apache, etc.)
    5. Click on the link that's in the 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.
    6. In the [year] field check the latest when the pod was updated.
    7. In the [copyright owner] use what's written on the pods page under Author.
    8. Save the file.
    9. run pod install in the terminal.

    Use this image for reference.

提交回复
热议问题