はじめに
iphone14へビルド時に、以下のようなエラーが出たので共有します。
エラー内容
Error (Xcode): File not found:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/l
ib/arc/libarclite_iphonesimulator.a
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.
解決法
podfileのpost_install do |installer句に以下を追記。(37行目辺り)
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
# ここまで
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
参考