cocoaPods版本切换-01(terminal_show)

来源:互联网 发布:日语注音软件 编辑:程序博客网 时间:2024/06/08 04:47


// 删除原有的cocoapods,版本, 然后下载指定版本的pods

10. macbook-pro:SARRS_DEVELOP mac.pro$ pod --version


11. macbook-pro:SARRS_DEVELOP mac.pro$ gem list 


12. macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


13. macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods


14. macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


15. macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-core

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-downloader

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-deintegrate



16. macbook-pro:SARRS_DEVELOP mac.pro$ gem install cocoapods -v 0.39


17. macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


18. macbook-pro:SARRS_DEVELOP mac.pro$ ./pod_manager 







[!] `xcodeproj` was renamed to `project`. Please update your Podfile accordingly.

The file /Users/mac.pro/Desktop/letv/gitLab/sarrs/SARRS_DEVELOP/*.xcworkspace does not exist.

macbook-pro:SARRS_DEVELOP mac.pro$ pod --version

1.2.0.beta.1

macbook-pro:SARRS_DEVELOP mac.pro$ gem list 


*** LOCAL GEMS ***


activesupport (5.0.0, 4.2.7.1)

bigdecimal (1.2.8)

CFPropertyList (2.3.4)

claide (1.0.1, 1.0.0)

cocoapods (1.2.0.beta.1, 1.0.1)

cocoapods-core (1.2.0.beta.1, 1.0.1)

cocoapods-deintegrate (1.0.1, 1.0.0)

cocoapods-downloader (1.1.2, 1.1.0)

cocoapods-plugins (1.0.0)

cocoapods-search (1.0.0)

cocoapods-stats (1.0.0)

cocoapods-trunk (1.1.1, 1.0.0)

cocoapods-try (1.1.0)

colored (1.2)

concurrent-ruby (1.0.2)

did_you_mean (1.0.0)

escape (0.0.4)

fourflusher (2.0.1, 0.3.2)

fuzzy_match (2.0.4)

gh_inspector (1.0.2)

i18n (0.7.0)

io-console (0.4.5)

json (1.8.3)

minitest (5.8.3)

molinillo (0.5.4, 0.4.5)

nanaimo (0.2.3)

nap (1.1.0)

net-telnet (0.1.1)

netrc (0.7.8)

power_assert (0.2.6)

psych (2.0.17)

rake (10.4.2)

rdoc (4.2.1)

ruby-macho (0.2.6)

test-unit (3.1.5)

thread_safe (0.3.5)

tzinfo (1.2.2)

xcodeproj (1.4.1, 1.2.0)

macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


*** LOCAL GEMS ***


cocoapods (1.2.0.beta.1, 1.0.1)

cocoapods-core (1.2.0.beta.1, 1.0.1)

cocoapods-deintegrate (1.0.1, 1.0.0)

cocoapods-downloader (1.1.2, 1.1.0)

cocoapods-plugins (1.0.0)

cocoapods-search (1.0.0)

cocoapods-stats (1.0.0)

cocoapods-trunk (1.1.1, 1.0.0)

cocoapods-try (1.1.0)

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods


Select gem to uninstall:

 1. cocoapods-1.0.1

 2. cocoapods-1.2.0.beta.1

 3. All versions

> 3

Successfully uninstalled cocoapods-1.0.1

Remove executables:

pod, sandbox-pod


in addition to the gem? [Yn]  y

Removing pod

Removing sandbox-pod

Successfully uninstalled cocoapods-1.2.0.beta.1

macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


*** LOCAL GEMS ***


cocoapods-core (1.2.0.beta.1, 1.0.1)

cocoapods-deintegrate (1.0.1, 1.0.0)

cocoapods-downloader (1.1.2, 1.1.0)

cocoapods-plugins (1.0.0)

cocoapods-search (1.0.0)

cocoapods-stats (1.0.0)

cocoapods-trunk (1.1.1, 1.0.0)

cocoapods-try (1.1.0)

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-core


Select gem to uninstall:

 1. cocoapods-core-1.0.1

 2. cocoapods-core-1.2.0.beta.1

 3. All versions

> 3

Successfully uninstalled cocoapods-core-1.0.1

Successfully uninstalled cocoapods-core-1.2.0.beta.1

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-downloader


Select gem to uninstall:

 1. cocoapods-downloader-1.1.0

 2. cocoapods-downloader-1.1.2

 3. All versions

> 3

Successfully uninstalled cocoapods-downloader-1.1.0

Successfully uninstalled cocoapods-downloader-1.1.2

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-plugins

Successfully uninstalled cocoapods-plugins-1.0.0macbook-pro

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-search

Successfully uninstalled cocoapods-search-1.0.0

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-stats

Successfully uninstalled cocoapods-stats-1.0.0

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-trunk


Select gem to uninstall:

 1. cocoapods-trunk-1.0.0

 2. cocoapods-trunk-1.1.1

 3. All versions

> 3

Successfully uninstalled cocoapods-trunk-1.0.0

Successfully uninstalled cocoapods-trunk-1.1.1

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-tyr

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-try

Successfully uninstalled cocoapods-try-1.1.0

macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


*** LOCAL GEMS ***


cocoapods-deintegrate (1.0.1, 1.0.0)

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-deintegrate


Select gem to uninstall:

 1. cocoapods-deintegrate-1.0.0

 2. cocoapods-deintegrate-1.0.1

 3. All versions

> 3

Successfully uninstalled cocoapods-deintegrate-1.0.0

Successfully uninstalled cocoapods-deintegrate-1.0.1

macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


*** LOCAL GEMS ***



macbook-pro:SARRS_DEVELOP mac.pro$ ls

macbook-pro:SARRS_DEVELOP mac.pro$ 

macbook-pro:SARRS_DEVELOP mac.pro$ 

macbook-pro:SARRS_DEVELOP mac.pro$ gem install cocoapods v 0.39

Fetching: cocoapods-core-1.1.1.gem ( 38%)

Fetching: cocoapods-core-1.1.1.gem ( 77%)

Fetching: cocoapods-core-1.1.1.gem (100%)

Successfully installed cocoapods-core-1.1.1

Fetching: cocoapods-deintegrate-1.0.1.gem (100%)

ERROR:  While executing gem ... (Errno::EACCES)

    Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-deintegrate-1.0.1/LICENSE

macbook-pro:SARRS_DEVELOP mac.pro$ 

macbook-pro:SARRS_DEVELOP mac.pro$ 

macbook-pro:SARRS_DEVELOP mac.pro$ 

macbook-pro:SARRS_DEVELOP mac.pro$ gem install cocoapods v0.39

ERROR:  While executing gem ... (Errno::EACCES)

    Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-deintegrate-1.0.1/LICENSE

macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


*** LOCAL GEMS ***


cocoapods-core (1.1.1)

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-core

Successfully uninstalled cocoapods-core-1.1.1

macbook-pro:SARRS_DEVELOP mac.pro$ gem uninstall cocoapods-search

macbook-pro:SARRS_DEVELOP mac.pro$ 

macbook-pro:SARRS_DEVELOP mac.pro$ 

macbook-pro:SARRS_DEVELOP mac.pro$ gem install --help

Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]


  Options:

        --platform PLATFORM          Specify the platform of gem to install

    -v, --version VERSION            Specify version of gem to install

        --[no-]prerelease            Allow prerelease versions of a gem

                                     to be installed. (Only for listed gems)



  Deprecated Options:

        --[no-]rdoc                  Generate RDoc for installed gems

                                     Use --document instead

        --[no-]ri                    Generate ri data for installed gems.

                                     Use --document instead

    -u, --[no-]update-sources        Update local source cache



  Install/Update Options:

    -i, --install-dir DIR            Gem repository directory to get installed

                                     gems

    -n, --bindir DIR                 Directory where binary files are

                                     located

        --[no-]document [TYPES]      Generate documentation for installed gems

                                     List the documentation types you wish to

                                     generate.  For example: rdoc,ri

        --build-root DIR             Temporary installation root. Useful for building

                                     packages. Do not use this when installing remote gems.

        --vendor                     Install gem into the vendor directory.

                                     Only for use by gem repackagers.

    -N, --no-document                Disable documentation generation

    -E, --[no-]env-shebang           Rewrite the shebang line on installed

                                     scripts to use /usr/bin/env

    -f, --[no-]force                 Force gem to install, bypassing dependency

                                     checks

    -w, --[no-]wrappers              Use bin wrappers for executables

                                     Not available on dosish platforms

    -P, --trust-policy POLICY        Specify gem trust policy

        --ignore-dependencies        Do not install any required dependent gems

        --[no-]format-executable     Make installed executable names match ruby.

                                     If ruby is ruby18, foo_exec will be

                                     foo_exec18

        --[no-]user-install          Install in user's home directory instead

                                     of GEM_HOME.

        --development                Install additional development

                                     dependencies

        --development-all            Install development dependencies for all

                                     gems (including dev deps themselves)

        --conservative               Don't attempt to upgrade gems already

                                     meeting version requirement

        --minimal-deps               Don't upgrade any dependencies that already

                                     meet version requirements

    -g, --file [FILE]                Read from a gem dependencies API file and

                                     install the listed gems

        --without GROUPS             Omit the named groups (comma separated)

                                     when installing from a gem dependencies

                                     file

        --default                    Add the gem's full specification to

                                     specifications/default and extract only its bin

        --explain                    Rather than install the gems, indicate which would

                                     be installed

        --[no-]lock                  Create a lock file (when used with -g/--file)

        --[no-]suggestions           Suggest alternates when gems are not found



  Local/Remote Options:

    -l, --local                      Restrict operations to the LOCAL domain

    -r, --remote                     Restrict operations to the REMOTE domain

    -b, --both                       Allow LOCAL and REMOTE operations

    -B, --bulk-threshold COUNT       Threshold for switching to bulk

                                     synchronization (default 1000)

        --clear-sources              Clear the gem sources

    -s, --source URL                 Append URL to list of remote gem sources

    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations



  Common Options:

    -h, --help                       Get help on this command

    -V, --[no-]verbose               Set the verbose level of output

    -q, --quiet                      Silence commands

        --config-file FILE           Use this config file instead of default

        --backtrace                  Show stack backtrace on errors

        --debug                      Turn on Ruby debugging



  Arguments:

    GEMNAME       name of gem to install


  Summary:

    Install a gem into the local repository


  Description:

    The install command installs local or remote gem into a gem repository.

    

    For gems with executables ruby installs a wrapper file into the executable

    directory by default.  This can be overridden with the --no-wrappers option.

    The wrapper allows you to choose among alternate gem versions using

    _version_.

    

    For example `rake _0.7.3_ --version` will run rake version 0.7.3 if a newer

    version is also installed.

    

    Gem Dependency Files

    ====================

    

    RubyGems can install a consistent set of gems across multiple environments

    using `gem install -g` when a gem dependencies file (gem.deps.rb, Gemfile or

    Isolate) is present.  If no explicit file is given RubyGems attempts to find

    one in the current directory.

    

    When the RUBYGEMS_GEMDEPS environment variable is set to a gem dependencies

    file the gems from that file will be activated at startup time.  Set it to a

    specific filename or to "-" to have RubyGems automatically discover the gem

    dependencies file by walking up from the current directory.

    

    NOTE: Enabling automatic discovery on multiuser systems can lead to

    execution of arbitrary code when used from directories outside your control.

    

    Extension Install Failures

    ==========================

    

    If an extension fails to compile during gem installation the gem

    specification is not written out, but the gem remains unpacked in the

    repository.  You may need to specify the path to the library's headers and

    libraries to continue.  You can do this by adding a -- between RubyGems'

    options and the extension's build options:

    

      $ gem install some_extension_gem

      [build fails]

      Gem files will remain installed in \

      /path/to/gems/some_extension_gem-1.0 for inspection.

      Results logged to /path/to/gems/some_extension_gem-1.0/gem_make.out

      $ gem install some_extension_gem -- --with-extension-lib=/path/to/lib

      [build succeeds]

      $ gem list some_extension_gem

    

      *** LOCAL GEMS ***

    

      some_extension_gem (1.0)

      $

    

    If you correct the compilation errors by editing the gem files you will need

    to write the specification by hand.  For example:

    

      $ gem install some_extension_gem

      [build fails]

      Gem files will remain installed in \

      /path/to/gems/some_extension_gem-1.0 for inspection.

      Results logged to /path/to/gems/some_extension_gem-1.0/gem_make.out

      $ [cd /path/to/gems/some_extension_gem-1.0]

      $ [edit files or what-have-you and run make]

      $ gem spec ../../cache/some_extension_gem-1.0.gem --ruby > \

                 ../../specifications/some_extension_gem-1.0.gemspec

      $ gem list some_extension_gem

    

      *** LOCAL GEMS ***

    

      some_extension_gem (1.0)

      $


  Defaults:

    --both --version '>= 0' --document --no-force

    --install-dir /usr/local/lib/ruby/gems/2.3.0 --lock

macbook-pro:SARRS_DEVELOP mac.pro$ gem install cocoapods -v 0.39

Fetching: cocoapods-core-0.39.0.gem (100%)

Successfully installed cocoapods-core-0.39.0

Fetching: claide-0.9.1.gem (100%)

Successfully installed claide-0.9.1

Fetching: xcodeproj-0.28.2.gem (100%)

Successfully installed xcodeproj-0.28.2

Fetching: cocoapods-downloader-0.9.3.gem (100%)

Successfully installed cocoapods-downloader-0.9.3

Fetching: cocoapods-plugins-0.4.2.gem (100%)

Successfully installed cocoapods-plugins-0.4.2

Fetching: cocoapods-search-0.1.0.gem (100%)

Successfully installed cocoapods-search-0.1.0

Fetching: cocoapods-stats-0.6.2.gem (100%)

Successfully installed cocoapods-stats-0.6.2

Fetching: cocoapods-try-0.5.1.gem (100%)

Successfully installed cocoapods-try-0.5.1

Fetching: cocoapods-trunk-0.6.4.gem (100%)

Successfully installed cocoapods-trunk-0.6.4

Fetching: cocoapods-0.39.0.gem (100%)

Successfully installed cocoapods-0.39.0

ERROR:  While executing gem ... (Errno::EACCES)

    Permission denied @ dir_s_mkdir - /usr/local/lib/ruby/gems/2.3.0/doc/cocoapods-core-0.39.0

macbook-pro:SARRS_DEVELOP mac.pro$ sudo gem install -n /usr/local/bin cocoapods -v 0.39

Password:

Successfully installed cocoapods-0.39.0

Parsing documentation for cocoapods-0.39.0

Installing ri documentation for cocoapods-0.39.0

Done installing documentation for cocoapods after 2 seconds

1 gem installed

macbook-pro:SARRS_DEVELOP mac.pro$ gem list  cocoa


*** LOCAL GEMS ***


cocoapods (0.39.0)

cocoapods-core (0.39.0)

cocoapods-downloader (0.9.3)

cocoapods-plugins (0.4.2)

cocoapods-search (0.1.0)

cocoapods-stats (0.6.2)

cocoapods-trunk (0.6.4)

cocoapods-try (0.5.1)


0 0
原创粉丝点击