ios

Pod init error

Product ? Project ? IT ? 2022. 12. 15. 00:50

cocoapods 사용을 위해서 cocoapods 설치 후 원하는 프로젝트에 pod init을 하려고 합니다.

 

% pod init

Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5

/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/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 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:140:in `verify_minimum_git_version!'

from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:49:in `run'

from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'

from /usr/local/bin/pod:23:in `load'

from /usr/local/bin/pod:23:in `<main>'

 

git에 대한 설정이 문제인가.. 아니면 CommandLineTools의 위치가 잘못 잡혀있나 등등..

 

설정 -> 개인정보 보호 및 보안 -> 앱관리 -> 터미널을 추가해줘야합니다.

 

이놈의 권한 / 보안 ^^^^^ APPLE 짱!!!!