Error on pod install

后端 未结 10 2034
南笙
南笙 2020-11-30 17:03

I have a working project the uses a pod file for some weeks now. When I learned that some of my pods have update I tried to \'pod install\' on got this weird error

10条回答
  •  天涯浪人
    2020-11-30 17:19

    Just to share my own fix for this issue:

    Since this is a git issue, you can use simple git commands to resolve it (See @AdamSharp's post). What worked for me was running

    git clean -d -f

    in ~/.cocoapods/repos/master. This recursively removes any untracked files and directories from the repo. I encourage you to run:

    git clean -d -f --dry-run

    Before you actually execute anything so you can see what it would do. Should it break your CocoaPods master repo, simply delete ~/.cocoapods/repos/master and run pod repo update.

提交回复
热议问题