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

后端 未结 4 1492
自闭症患者
自闭症患者 2021-02-04 08:21

I am making a cocoapods. I am using pod lib create MyLibrary to create a new cocoapods. After it\'s done, I added two files into MyLibrary/Pod/Classes/. And I commi

4条回答
  •  -上瘾入骨i
    2021-02-04 09:05

    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.

提交回复
热议问题