-
[Xcode ] pod update 에러 해결► React Native/개발일기 2023. 4. 7. 20:44반응형
선배에게 전달받은 react native 프로젝트를 xcode에서 실행하면서,
아래와 같은 에러가 발생하였다.
▼ 에러코드
% pod update
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:128:in `git_version': Failed to extract git version from `git --version` ("xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun\\n") (RuntimeError)
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:140:in `verify_minimum_git_version!'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:49:in `run'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `load'
from /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `<main>'
▼ 해결방법
xcode에서 세팅으로 들어간다
Locations 에서 Command Line Tools를 설정한다.
▼ 해결된 상태
pod update 성공!
반응형'► React Native > 개발일기' 카테고리의 다른 글
[Android] 'SDK location not found' 에러 해결 (0) 2023.04.11 [터미널] npm install 에러 (0) 2023.04.07 [React Native] 데이터 가공 (데이터 키값의 이름 및 구조 변경) (0) 2023.03.17 [React Native] replaceAll 함수 (0) 2023.03.03 [React Native] text 넘침 (0) 2023.03.02