I am setting a flutter project on Mac M3. I am getting the following error
Running Xcode build...
└─Compiling, linking and signing... 2,794ms
Xcode build done. 36.8s
Failed to build iOS app
Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swift_Builtin_float
Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swift_errno
Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swift_math
Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swift_signal
Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swift_stdio
Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swift_time
Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swiftsys_time
Error (Xcode): Undefined symbol: __swift_FORCE_LOAD_$_swiftunistd
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 15 Pro Max.
OS : mac OS Sonama Version 14.7 (23H124)
Xcode : 15.4
Flutter : 3.22.2
I am updating with an another solution that worked for me in my particular use case. Deepak's solution needs to change the pubspec to a different branch. A.Ktns Solution of updating podfile.lock don't work great if ci cd and in automation.
target 'Runner' do
use_frameworks!
use_modular_headers!
pod 'FBAudienceNetwork','= 6.15.0'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end