Language/iOS,AOS
코코아팟 라이브러리 인식 문제
건담아빠
2023. 4. 12. 12:00
cocoapods으로 설치한 라이브러리 인식을 못하는 문제가 발생하였고 해결하는 과정을 정리해 두려고 한다.
정리에 필요한 라이브러리 설치
$ sudo gem install cocoapods-deintegrate cocoapods-clean
정리 시작
$ pod deintegrate
$ pod cache clean --all
라이브러리 설치
$ pod install
더깔끔하게
혹시라도 위 과정에서도 해결이 안되거나, git 충돌등이 발생한다면 아래처럼 폴더까지 다 삭제하고 재설치 해보는것도 방법이다.
$ pod deintegrate
$ rm -rf Pods
$ rm -rf Podfile.lock
$ rm -rf gobang.xcworkspace
$ pod cache clean --all
$ pod install
참조
https://stackoverflow.com/questions/64868980/question-about-module-import-error-of-cocoapods
question about module import error of cocoapods
I am new to Swift and Xcode, I once import Alamofire, SwiftyJSON using cocoa pods in some tutorials, In the beginning, everything works fine, but recently every time I restart my swift project, I a...
stackoverflow.com