CocoaPods로 SnapKit 의존성 추가하기
CocoaPods로 SnapKit 의존성 추가하기
프로젝트 루트 디렉토리로 이동하여 아래 커맨드 실행
1
pod init
생성된 Podfile에 아래와 같이 SnapKit 의존성 추가
Podfile
1
2
3
4
5
6
7
8
9
10
11
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'YourProjectName' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for YourProjectName
pod 'SnapKit', '~> 5.0.0'
end
아래 커맨드 실행
1
pod install
CocoaPods 사용 시
.xcworkspace파일로 프로젝트를 열어야 함.
Reference
This post is licensed under CC BY 4.0 by the author.