오래간만에 cocoapod 으로 오픈소스를 다운받기 위해 평소처럼 podfile을 생성했는데
cocoapod init
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
이런 에러가 출력되었다 검색해보니 맥 os Catalina로 업데이트 하면 발생하는 문제로 파악되어
해결 방법을 찾았다.
brew install cocoapods --build-from-source
brew link --overwrite cocoapods
터미널에 위 두 명령어를 입력하면 해결된다고 하는데 저는 한가지 더 문제가 있어서 글을 남겨 놓습니다.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
CompilerSelectionError: cocoapods cannot be built with any available compilers.
Install GNU's GCC:
brew install gcc
자꾸 위와 같은 에러가 출력될때 해결방법으로
$ xcode-select --install
위 명령어로 명령어 라인 도구를 설치하고 나니 위 두 명령어가 정상적으로 실행되었습니다.
'Swift' 카테고리의 다른 글
테이블뷰 당겨서 새로고침 만들기 (0) | 2020.10.16 |
---|---|
Alamofire - SessinoManager (0) | 2020.09.28 |
App Clips (0) | 2020.09.18 |
Codable 사용하기 (0) | 2020.09.16 |
Swift - Navigation item 왼쪽 타이틀 주기 (0) | 2020.09.14 |