0
0

More than 1 year has passed since last update.

File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.aエラーについて

Posted at

問題発生

バグの原因調査のため、gitから二ヶ月前のコードをチェックアウトしてビルドしたところ表題のエラーが発生した。

原因

Xcode14.2->Xcode14.3で'libarclite_iphoenesimulator.a'が削除されたことが原因で、
Xcode14.2でビルドしていた時のコードが'libarclite_iphoenesimulator.a'に依存していたことによってエラーが発生した。

解決方法

Podfileのpost_installを以下のようにする

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
 installer.pods_project.targets.each do |target|
   flutter_additional_ios_build_settings(target)
 end
end

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0