[Err handlling] You have not agreed to the Xcode license agreements.
어떤 에러?
$ objc[45350]: Class AMSupportURLSession is implemented in both
/usr/lib/libauthinstall.dylib (0x1f45f7bc8) and /System/Library/
PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(0x10fabc318). One of the two will be used. Which one is undefined.
You have not agreed to the Xcode license agreements.
You must agree to both license agreements below in order to use Xcode.
React-Native를 학습하기 위해 여러 환경을 셋팅하면서
Xcode도 설치했다.
그리고, 오늘 공부한 내용들을 정리해 Github에 업로드 하기 위해
터미널에서 git 명령어를 입력했는데, (애초에 갑자기 터미널이 느려진 것을 느껴 이상함이 감지됐다)
위와 같은 에러 메세지가 떴다.
마지막 구절을 보니 분명 Xcode 때문에 생긴 문제로 보이는데,
정말 이런 에러는 듣도 보도, 그리고 지금껏 만났던 에러들과는
확연히 달랐기 때문에 참으로 의아했다.
역시나, 구글링을 한 결과 문제를 해결할 수 있었다.
어떻게 해결?
문제는 license였는데, 이 license에 대한 동의를 해야만 하는 것이었다.
우선,
- 터미널을 실행한 뒤에
- $ sudo xcodebuild -license 를 입력하고,
return
키 (enter)를 눌러준다.- 여러가지 약관들이 주루룩 뜨는데,
q
를 눌러 종료하고, - $ By typing ‘agree’ you are agreeing to the terms of the software license agreements. Type ‘print’ to print them or anything else to cancel, [agree, print, cancel] 위와 같은 메세지가 떴을 때
agree
를 입력해 준다.