美文网首页
cocoapod 下载三方库报错

cocoapod 下载三方库报错

作者: 福将的逆袭 | 来源:发表于2018-04-19 13:00 被阅读0次

    [!] Unable to satisfy the following requirements:

    - `MJExtension` required by `Podfile`

    - `MJExtension (= 2.4.4)` required by `Podfile.lock`

                  哎,之前没有见过这个错误,我不知道从何着手解决这个问题。然后,开始使用我们程序员的神器,就是Google啦。很难想象如果没有Google,多少程序员要丢饭碗。看到了一个博客分享了自己的解决方案,如下:

      由此可知,出现这个错误的原因是,我本地Podfile文件上的MJExtension第三方版本太低。解决方案就是,更新一下本地Podfile文件上的MJExtension第三方版本,也就是pod update --verbose一下。注意一下,这个命令需要很长时间。一直停在这个页面。。。

    不要使用TextEdit编辑PodFile文件

         有时候我们图方便,直接使用TextEdit编辑PodFile文件,执行pod install 时报错:

    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.

    还是乖乖的使用命令吧:

    vim Podfile----打开文件

    输入i---------进入编辑模式

    按键盘Esc,输入大写ZZ-----保存退出

    pod install----------下载

    相关文章

      网友评论

          本文标题:cocoapod 下载三方库报错

          本文链接:https://www.haomeiwen.com/subject/pxkwkftx.html