【Flutter】エラーの対処(Error (Xcode): 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)
Error (Xcode): 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
古いプロジェクトをビルドしようとするとこのようなエラーが出るようになったので、対処法をご紹介します。
ios/Podfile を開きます。
post_install do |installer| と記載されている箇所を探し、その下に次のコードを追記します。
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
完成形は以下のようになります。
この記事が気に入ったらサポートをしてみませんか?