iOS) CocoaPods warning 무시하기

Havi·2021년 3월 25일
0

Podfile에 버전을 잡아놓고 쓰다보면 무수한 warning이 뜬다.

warning을 극도로 싫어하기 때문에 warning을 무시하고싶다.

다음 코드를 쓰면 된다.

# pod 의 모든 warning 무시
inhibit_all_warnings!

# 특정 pod의 warning 무시
pod 'FBSDKCoreKit', :inhibit_warnings => true

# DeployTarget 11로 올리라는 warning만 무시하고 싶을 때 사용
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
profile
iOS Developer

0개의 댓글