Slackコミュニティに

無料で参加する

Flutterラボの

プレミアム会員になる

【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)

2024.02.20

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

完成形は以下のようになります。

Flutterラボ
hatchoutschool
FlutterとNuxtに関する知識を発信しています! 動画で学べる学習サイト『Flutterラボ』と『Nuxtラボ』を運営 Flutterラボ:https://flutterlabo.tech/