ios - 在 iOS Flutter 中构建发布时出现此错误
问题描述
在 Xcode 中构建/归档此项目时出现此错误。(扑)
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)
解决方案
我遇到了类似的问题,对我来说,问题是由在 XCode 中打开 Runner.xcodeproj 而不是 Runner.xcodeworkspace 引起的。对于使用 XCode 的人来说,这似乎很明显,但也许这会在某个时候对某人有所帮助。
推荐阅读
- git - Git .DS_Store 文件删除失败
- c++ - 使用初始化列表构造函数构造具有不可复制值类型的 std::map
- python - 计算列表中 4 个连续数字的最大乘积
- python-3.x - 由于使用 Docker 的 PostgresDB 连接失败,无法启动 Apache Superset
- python - 在 Mac 上使用 Python 3.8 中的键盘模块
- python - 替换循环 Numpy 的点积
- prolog - Beckert & Posegga 算法的 Prolog 实现
- javascript - 如何创建可滚动的水平导航菜单但在用户窗口向下滚动时显示
- python - 如何使用 Spacy EntityRuler NLP 组合实体术语?
- python - Python Selenium Webdriver selenium.common.exceptions.NoSuchElementException:消息:没有这样的元素:无法找到元素