The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.
本件は、Xcode12がiOS8.0をサポートしなくなったため、iOS8.0をDeproiment TargetがiOS8.0となっているCocoaPodsでインストールしたライブラリがあるために表示される。
このエラーを回避するためには、CocoaPodsでインストールするライブラリがDeproiment Targetが9.0となるように、下記を実施する。
1. podfileを下記の通り修正し、pod installを実行する。
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
target 'YOUR_PROJECT_NAME' do
use_frameworks!
pod 'Hoge'
end
参考記事:
https://www.jessesquires.com/blog/2020/07/20/xcode-12-drops-support-for-ios-8-fix-for-cocoapods/
https://qiita.com/temoki/items/46ad22940e819a132435