macOS High Sierra에서 작동하지 않는 CocoaPod
macOS로 업그레이드 한 후 High Sierra CocoaPods가 작동하지 않습니다. CocoaPods에서 멀어지고 싶지만 안타깝게도 지금은 범위 내에 있지 않습니다. 오류 메시지는 다음과 같습니다.
zsh: /Users/****/.gems/bin/pod: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin: no such file or directory
오류가 Ruby에서 업그레이드 되었기 때문에 발생하지만 쉽게 해결할 수있는 방법은 무엇입니까? CocoaPods에서 새로운 루비 버전을 사용하려고하면 다른 오류가 발생합니다.
편집 : 지금은 내가 설치 Ruby 2.0
와 rvm install 2.0.0
및 rvm use 2.0.0
다음 다시 설치 CocoaPods sudo gem install cocoapods
. 지금 일하는 것 같습니다.
https://github.com/CocoaPods/CocoaPods/issues/6778 에 따르면 CocoaPods를 다시 설치하면이 문제가 해결됩니다.
sudo gem install cocoapods
macOS High Sierra로 업그레이드 한 후 다음 명령으로 수정하십시오.
sudo gem update --system
sudo gem install -n /usr/local/bin cocoapods
완료되면 아래 명령을 작성하십시오.
pod install
이 솔루션은 나를 위해 일했습니다 ... !!!
CocoaPods를 설치하는 동안이 오류가 발생했습니다
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
그리고 나는이 진술을 사용했습니다. 효과가 있었다!
sudo gem install cocoapods -n /usr/local/bin
비록 내가해야했지만 이것은 나를 위해 일했다.
sudo gem install cocoapods
이것은 내 문제를 해결했다.
$ brew install ruby
$ gem install -n /usr/local/bin cocoapods
아래 명령을 실행하십시오.
sudo gem install -n /usr/local/bin cocoapods
그래서 High Sierra로 업데이트 한 후에도이 문제가 발생했으며 루비 프레임 워크가 액세스하는 파일 위치가 약간 변경된 것처럼 보입니다.
당신은 그것을 사용하여 해결할 수 있습니다
sudo gem install cocoapods
안전한 측정을 위해 포드를 업데이트하십시오.
pod repo update
그리고 마지막으로
pod install
포드 파일을 다시 작동 시키려면
희망이 있습니다 :)
사용해보십시오
sudo gem update --system
전에
sudo gem install cocoapods
이것은 나를 위해 일했다
터미널로 이동 ...
1 단계). sudo gem 설치 cocoapods
코코아 포드 설치 완료 후
2 단계). 포드 레포 업데이트
완료
이것은 나를 위해 작동합니다 :
brew link --overwrite cocoapods
나를 위해, 나는해야했다 :
gem uninstall cocoapods
which pod
여전히 경로에 표시되었으므로 삭제했습니다. 여전히 표시되지 않았는지 확인하십시오.
그때
gem install cocoapods
I also encountered this error after installing High Sierra
.
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
I used the following statement identified by Danh Huynh (see above) and It worked!
sudo gem install cocoapods -n /usr/local/bin
Cocoapods install process:
sudo gem install cocoapods
(if you have any problem cocoapds, please update gem file)sudo gem update --system
sudo gem install cocoapods
MacOS High Sierra uses ruby 2.3 by default. After upgrading to it, some old ruby gems might not function properly. This problem occurs to me when I ran the bundle command (bundler is a ruby gem; it has a utility called bundle).
So, to clarify, any old ruby gems (cocoapods, bundler, etc) that are trying to access ruby 2.0 will fail.
The solution is to reinstall those old gems in a directory where you have permissions to write.
For cocoapods,
sudo gem install cocoapods -n /usr/local/bin
will do the trick.
You can optionally upgrade your gem system if you like before
the install:
sudo gem update --system
This may prompt to you that the upgrading has failed. But actually, if you type:
gem --version
You can see that the upgrading has been successful.
For bundler or other gems, try to do the same:
sudo gem install gem-to-install(for example, bundler) -n /usr/local/bin
About the -n
option. Don't miss that. You can check the gem documentation if you want.
So, the solution is all about reinstalling the old gem
to a proper directory.
While I'm doing the same I got another error saying that
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
Then I did this and worked fine.
sudo gem uninstall cocoapods
sudo gem install cocoapods
Had a same issue, resolution:
Reinstall ruby
brew install ruby
Reinstall Cocoa Pods
sudo gem install cocoapods
This is a common problem when upgraded to Mac OSX High Sierra.
Fix is simply installing Cocoapods (again):
sudo gem install cocoapods
Running this on terminal worked for me:
sudo gem install cocoapods
참고 URL : https://stackoverflow.com/questions/44396215/cocoapods-not-working-in-macos-high-sierra
'Programing' 카테고리의 다른 글
OpenID 대 OAuth (0) | 2020.06.29 |
---|---|
공백을 밑줄로 바꾸기 (0) | 2020.06.29 |
ListView가 비어있을 때 빈보기 표시 (0) | 2020.06.29 |
HttpServletRequest에서 getRequestURI와 getPathInfo 메소드의 차이점은 무엇입니까? (0) | 2020.06.29 |
Java가 10에서 99까지의 모든 숫자의 곱이 0이라고 생각하는 이유는 무엇입니까? (0) | 2020.06.29 |