Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am getting this error when build release in iOS Flutter

Tags:

ios

flutter

dart

I am getting this error when building/archiving this project in Xcode. (Flutter)

ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/FirebaseCore'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/GTMSessionFetcher'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/GoogleAPIClientForREST'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/Protobuf'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/firebase_ml_vision'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/flutter_native_image'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/image_picker'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/nanopb'
ld: warning: directory not found for option '-L/Users/gurleensethi/FlutterProjects/camera_ml/build/ios/Debug-iphoneos/path_provider'
ld: library not found for -lFirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
like image 331
Gurleen Sethi Avatar asked Dec 17 '25 13:12

Gurleen Sethi


2 Answers

I was having similar issues, and for me the problem was caused by opening Runner.xcodeproj instead of Runner.xcodeworkspace in XCode. This might seem obvious for people experience with XCode, but maybe this will help someone sometime.

like image 156
jurrdb Avatar answered Dec 20 '25 04:12

jurrdb


it seems you have missing library try :

  1. flutter clean
  2. flutter build ios
like image 44
khairy Mohamed Avatar answered Dec 20 '25 03:12

khairy Mohamed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!