I have flutter project, I'm trying to run the iOS version but I get error after I update flutter and Xcode to the latest version, I use firebase core plugin
error:
Could not build the precompiled application for the device. Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation) Podfile:
# Uncomment this line to define a global platform for your project # platform :ios, '12.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, } def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end I also tried to all installed pods by:
pod deintegrate rm Podfile.lock rm -rf Pods and then update the repositories and install the pods and I still get the same error, should I reninstall xcode?
Flutter packages:
firebase_core: ^2.8.0 firebase_crashlytics: ^3.0.17 firebase_analytics: ^10.1.6 firebase_messaging: ^14.3.0 Any workaround for this? and thank you for your time




Flutter 3.7.10: github.com/flutter/flutter/wiki/…libarclite_iphoneoswas fixed in Flutter 3.7.11 github.com/flutter/flutter/issues/124340. The other unrelated issue is the failure to archive, which was tracked in github.com/flutter/flutter/issues/123890 and fixed in Flutter 3.7.10. In either case, remove any changes you've made to your Podfile and runflutter upgrade.