pod install failed with error: Library (from `../`)` required by `Podfile` when pod install in iOS

半城伤御伤魂 提交于 2019-12-02 23:21:10

I had the same problem and I have been able to solve it following this steps:

  • Update cocoapod
  • Remove Podfile.lock
  • Installing again

Commands:

$> sudo gem install cocoapods --pre
$> rm Podfile.lock
$> pod install

Maybe some are not necessary, but it worked for me (I think that the most important is to remove the Podfile.lock). I hope you can solve it too.

Mike Demidov

Yeah. One hour I've just paid to solve this problem. The problem was incompatibility of ios versions, a dependency had 7.0 but my target has 6.0 version. Updating to 7.0 the target version has solved my issue. Why wouldn't write an error message for such troubles?...

try this:

$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ sudo rm -fr ~/.cocoapods/repos/master/

it works for me. I hope this solution will work for you too.

I might be late, but if someone else finds this:

I often have the same problem, it happens when I use pod install in my own "MyLibrary" instead of pod update.

So try instead

pod update

This has to do something with your Podfile.lock, but I cant tell you exactly whats the reason.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!