Skip to content

Instantly share code, notes, and snippets.

@mitsuharu
Created November 17, 2022 02:09
Show Gist options
  • Save mitsuharu/b484c377750153669cfc705ed7cdbadc to your computer and use it in GitHub Desktop.
Save mitsuharu/b484c377750153669cfc705ed7cdbadc to your computer and use it in GitHub Desktop.
PODFILE で導入するライブラリの IPHONEOS_DEPLOYMENT_TARGET を変更する
def change_deployment_target(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 11.0
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
end
target 'myapp' do
post_install do |installer|
change_deployment_target(installer)
end
end
@mitsuharu
Copy link
Author

メモ

  • Xcode 12 で 9.0 以上
  • Xcode 14 で 11.0 以上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment