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 짱!!!!
'ios' 카테고리의 다른 글
Swift - 구조체 / 클래스 (0) | 2022.12.31 |
---|---|
Swift - 반복문(for in, repeat while)| (0) | 2022.12.20 |
Swift - 함수 (메서드, 매개변수, 클로저) (0) | 2022.12.16 |
Swift - Alamofire? (0) | 2022.12.15 |
Swift - Optional(옵셔널) 이란? (0) | 2022.12.15 |