2014-01-28 3 views
2

현재 코코아포드 0.26.2 (출력은 pod --version)입니다. 0.29.0으로 업데이트하고 싶습니다.코코아포드를 최신 버전으로 업데이트해도 아무런 변화가 없습니다.

sudo gem update 나는 cocoapods 보석으로 아무 것도하지 않는 것으로 보였습니다. 그래서, cocoapods.org에 다음과 같은 제안은 내가 시도 : 나타나지 않았다

sudo gem uninstall cocoapods 
sudo gem install cocoapods 

는 cocoapods 0.29.0를 설치합니다. 그러나 pod --version을 실행하면 여전히 0.26.2에 있음을 알 수 있습니다.
$ which pod 
/usr/bin/pod 

나는 다시 다시 설치/제거를 시도 뭔가 다른 /usr/bin/pod의 이름을 변경했지만, 그것은 /usr/bin에 포드 바이너리를 넣어하지 않습니다. DOES 그러나 /usr/local/Cellar/ruby/2.0.0-p247/bin에 이진 코드를 삽입하십시오. 그 이상하고 버전 하드 코딩 된 경로를 내 $PATH에 실제로 추가해야합니까 ?? 왜 코코아포드는 이전에 /usr/bin에 설치 되었습니까?

내 보석 환경 :

RubyGems Environment: 
    - RUBYGEMS VERSION: 2.1.9 
    - RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [x86_64-darwin12.5.0] 
    - INSTALLATION DIRECTORY: /usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/gems/2.0.0 
    - RUBY EXECUTABLE: /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby 
    - EXECUTABLE DIRECTORY: /usr/local/Cellar/ruby/2.0.0-p247/bin 
    - SPEC CACHE DIRECTORY: /Users/michael/.gem/specs 
    - RUBYGEMS PLATFORMS: 
    - ruby 
    - x86_64-darwin-12 
    - GEM PATHS: 
    - /usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/gems/2.0.0 
    - /Users/michael/.gem/ruby/2.0.0 
    - GEM CONFIGURATION: 
    - :update_sources => true 
    - :verbose => true 
    - :backtrace => false 
    - :bulk_threshold => 1000 
    - REMOTE SOURCES: 
    - https://rubygems.org/ 
    - SHELL PATH: 
    - /usr/local/bin 
    - /usr/local/sbin 
    - /usr/bin 
    - /bin 
    - /usr/sbin 
    - /sbin 
    - /usr/local/bin 
    - /opt/X11/bin 

내가 OS X 10.9.1를 실행하는거야.

답변

6

좋아, this answer about ruby and homebrew이 문제를 해결했습니다. 내 $PATH/usr/local/opt/ruby/bin을 추가해야했습니다. 내가 /usr/bin에 포드 이진 버전을 어떻게 가지고 있었는지 모르겠지만, OSX에서 제공 한 루비 버전을 사용하여 이전 버전의 cocoapods를 설치하는 것이 가능합니다.

관련 문제