📱
FlutterでiOS Simulatorが起動しない(Xcode 14.3エラー)
追記
*以下の対応ではarchiveできないようです
こちらの記事を参考にしてください
概要
FlutterでiOS Simulatorを使ってビルドしようとすると、
Error output from Xcode build:
↳
2023-03-31 22:44:35.641 xcodebuild[24258:531971] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/0t/lb5cg65x4tb8tcd5n51s8zbm0000gn/T/flutter_tools.J48Qzx/flutter_ios_build_temp_dirwE3WK0/temporary_xcresult_bundle
ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
などのエラーが出てビルドできない
解決方法
iOS/Podfile下部のpost_install do |installer|〜
を以下のように変更する(コピペでOK)
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
参考記事
・https://github.com/flutter/flutter/issues/123903
・https://stackoverflow.com/questions/75574268/missing-file-libarclite-iphoneos-a-xcode-14-3/75867043#75867043
Discussion