2018-06-12 安装与配置cocoapods

作者: 肠粉白粥_Hoben | 来源:发表于2018-06-12 15:09 被阅读26次
    1. 首先安装Ruby,https://ruby-china.org/wiki/install_ruby_guide/
    2. 然后安装Cocoapods,https://www.jianshu.com/p/1e7ab521000b
    3. 然后配置Podfile,https://blog.csdn.net/turkeyteo/article/details/43232083
    platform :ios, '11.2'
    target 'TryMasonry' do
    pod 'Masonry'
    end
    
    1. 我遇到的问题:
      pod install 失败:[!] Unable to satisfy the following requirements:-`Masonry` required by `Podfile`Specs satisfying the `Masonry` dependency were found, but they required a higher minimum deployment target.
      解决:podfile platform :ios,’8.0’ 版本号不能少
      参考的是https://www.jianshu.com/p/afe6d349bdbf
      5.最坑的地方来了!教程没说!
      如果直接打开.xcodeproj文件的话,就会崩溃!
      我们可以看到,其实是生成一个.xcworkspace文件的,要打开的是这个!

      坑了我很久。。分享给大家。。

    基本就是这样啦,✿✿ヽ(°▽°)ノ✿

    相关文章

      网友评论

        本文标题:2018-06-12 安装与配置cocoapods

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