美文网首页ios相关点
ios svn pods 问题

ios svn pods 问题

作者: 轩辕小爱 | 来源:发表于2018-03-09 15:02 被阅读4次

    由于SVN代码提交习惯的问题,都是在SVN客户端直接找到自己添加或者修改的文件commit 上传,往往忽略了依赖的cocapods三方库,从而每次新的代码都需要pod install一下,不过大多数时候不同开发人员用到的pod版本也不同,从而往往造成各种问题,比如Pods文件爆红,找不着或者报出别的错误,大多数时候一般问题网上搜搜都能解决,但有时候按照下面步骤才能解决问题的根源(比如我)

    $ which openssl

    /usr/bin/openssl

    $ openssl version

    OpenSSL 0.9.8zh 14 Jan 2016

    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    $ brew update

    $ brew install openssl

    $ brew upgrade openssl

    `` If you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

    $ echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

    $ source ~/.bash_profile

    $ which openssl

    /usr/local/opt/openssl/bin/openssl

    $ openssl version

    OpenSSL 1.0.2n  7 Dec 2017

    $ brew install rbenv ruby-build

    $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile

    $ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile

    $ source ~/.bash_profile

    $ rbenv install --list

    Available versions:

      1.8.5-p52

      1.8.5-p113

      1.8.5-p114

      1.8.5-p115

      1.8.5-p231

      1.8.6

    :

      2.5.0-rc1

      2.5.0

      2.6.0-dev

    :

    $ rbenv install 2.5.0

    $ rbenv versions

    * system (set by /Users/username/.rbenv/version)

      2.5.0

    $ ruby --version

    ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

    $ rbenv global 2.5.0

    $ rbenv versions

      system

    * 2.5.0 (set by /Users/username/.rbenv/version)

    $ ruby --version

    ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]

    $ gem install cocoapods -n /usr/local/bin

    $ which pod

    /usr/local/bin/pod

    $ pod --version

    1.4.0

    最后

    pod update

    这个看着是更新pods,其实是updated ruby version,毕竟pods就是用ruby实现的。。。。。。

    相关文章

      网友评论

        本文标题:ios svn pods 问题

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