[英]I am getting this error when build release in iOS Flutter
I am getting this error when building/archiving this project in Xcode.在 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)
I was having similar issues, and for me the problem was caused by opening Runner.xcodeproj instead of Runner.xcodeworkspace in XCode.我遇到了类似的问题,对我来说,问题是由于在 XCode 中打开 Runner.xcodeproj 而不是 Runner.xcodeworkspace 引起的。 This might seem obvious for people experience with XCode, but maybe this will help someone sometime.
对于使用 XCode 的人来说,这似乎很明显,但也许这会在某个时候对某人有所帮助。
您似乎缺少库尝试:
flutter clean
flutter build ios
I spent hours trying to fix a similar bug on library not found.我花了几个小时试图修复未找到的库上的类似错误。 Ultimately this is how I was able to resolve it
最终这就是我能够解决它的方式
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.