일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 이미지넘기기
- 이미지control
- 하프모달뷰
- halfmodalview
- 스크롤
- AOS
- github
- pagecontrol
- modalview
- Toast
- pod설치오류
- 토스트팝업
- 안드로이드
- toastpopup
- 토스트
- scrollview
- 하프모달
- 모달뷰
- 스크롤뷰
- 알럿
- 페이지컨트롤
- Android
- IOS
- halfmodal
- 안드로이드스튜디오
- GIT
- androidstudio
- xcode
- Swift
- scroll
Archives
- Today
- Total
또뇽에몽
[IOS/Swift] Cocoapods 설치 및 사용 방법 본문
반응형
안녕하세요. 오늘은 Project를 진행할 때 외부 라이브러리를 관리하기 쉽도록 도와주는 확장 관리 도구 Cocoapods를 설치하는 방법에 대해 알아보겠습니다.
1. Cocoapods 설치
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Cocoapods 설치 | |
sudo gem install cocoapods | |
//Cocoapods 설치 오류날 경우(아래 명령어 입력 후 Cocoapods 다시 설치(그래도 오류나면 MacOS 업데이트)) | |
xcode-select --install | |
//Cocoapods 설치 확인 | |
pod --version |
터미널 실행 후 cocoapods 설치
ERROR: Failed to build gem native extension
2. Pod 파일 생성
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Pod 생성 | |
pod init | |
//Pod 생성 확인 | |
ls |

3. Podfile 수정
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//터미널로 Podfile 수정하기 | |
nano Podfile | |
vi Podfile | |
open -e Podfile | |
//Pod 라이브러리 넣기(최신버전) | |
pod 'IQKeyboardManagerSwift' | |
//Pod 라이브러리 버전까지 넣기 | |
pod 'IQKeyboardManagerSwift', '~> 6.5.6' |


4. Pod 설치하기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Pod 설치하기 | |
pod install | |
//Pod 설치 오류날 경우(아래 순서대로 설치) | |
sudo arch -x86_64 gem install ffi | |
arch -x86_64 pod install |

Pod 라이브러리 삭제하기▼
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Pod 라이브러리 삭제 | |
pod deintegrate | |
//Pod 로컬 캐시 삭제 | |
pod cache clean -all | |
//Pod 로컬 캐시 리스트 확인 | |
pod cache list | |
//Pod 업데이트 | |
pod update |
반응형
'IOS' 카테고리의 다른 글
[IOS/Swift] Xcode 이미지 PageControl 적용하기(Scroll) (0) | 2023.01.27 |
---|---|
[IOS/Swift] Xcode 상단고정 ScrollView(스크롤뷰) 적용하기 (1) | 2023.01.26 |
[IOS/Swift] Xcode ScrollView(스크롤뷰) 적용하기(Storyboard) (9) | 2023.01.25 |
[IOS/Swift] Xcode와 GitHub 협업 준비 (4) | 2023.01.21 |
[IOS/Swift] XCode와 GitHub 연동하기 (5) | 2023.01.20 |