問題発生
バグの原因調査のため、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
参考