[iOS] SDK does not contain 'libarclite' at the path 에러 해결법

"Error : SDK does not contain 'libarclite' at the path' "

Posted by JacksonJang on May 1, 2024

에러

코코아 팟을 이용해서 Podfile에 라이브러리를 추가하고 프로젝트를 실행 했을 때 다음과 같은 에러가 뜰 때 해결법을 공유하겠습니다!

1
clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a'; try increasing the minimum deployment target

해결법

Podfile 최하단에 추가하고 pod install을 다시 하시면 됩니다.

1
2
3
4
5
6
7
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
    end
  end
end

예시

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Uncomment the next line to define a global platform for your project
platform :ios, '14.0'

target 'TestProject' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for TestProject
  pod 'RxSwift'
  pod 'SnapKit'
  pod 'FSCalendar'

end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
    end
  end
end