티스토리 뷰
iOS/Error
[iOS error] The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0
Peppo 2021. 11. 16. 13:13728x90
문제
라이브러리 설치할때마다 DEPLOYMENT_TARGET 버전이 변경되서
빌드를 할때마다 각 라이브러리의 타겟 버전을 변경해줘야 하는 번거로움이 있었습니다.

해결
Podfile에서 아래 내용을 추가해줍니다.
// 이 내용을 추가해주세요.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' // <- 맞추고자 하는 버전
end
end
end
저는 iOS 11버전으로 지정했습니다.
// Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '11.0'
target '프로젝트_이름' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for 프로젝트_이름
pod 'RealmSwift'
pod 'Alamofire', '~> 5.4'
pod 'SnapKit', '~> 5.0.0'
// 여기 추가
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' // <- 맞추고자 하는 버전
end
end
end
//
end
이렇게 하시고 터미널 -> 작업폴더(디렉토리)에서 pod install 을 해주시면 !!
ios target은 지정해놓은 버전으로 고정됩니다.
728x90
'iOS > Error' 카테고리의 다른 글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Swift 프로퍼티
- CS 네트워크
- swift 고차함수
- RTCCameraVideoCapturer
- swift (programmers)
- Swift joined()
- RIBs tutorial
- Combine: Asynchronous Programming with Swift
- Swift RIBs
- removeLast()
- swift reduce
- Swift ModernRIBs
- 원티드 프리온보딩
- ios
- Class
- Swift 내림차순
- iOS error
- Swift 프로그래머스
- Swift
- Swift Error Handling
- Swift Leetcode
- Swift inout
- 2023년 회고
- Swift final
- Swift joined
- Swift init
- swift protocol
- swift programmers
- Swift 알고리즘
- swift property
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
글 보관함