xcode编译提示:/bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory 或者
ld: warning: directory not found for option ‘-L/xxxx/build/ios/Debug-iphoneos/path_provider’
ld: warning: directory not found for option ‘-L/xxxx/build/ios/Debug-iphoneos/shared_preferences’
ld: library not found for -lpath_provider
解决: 在命令行下执行下flutter run,在用xcode编译就可以了
原因:工程可能是从其他的电脑复制过来的,缺少本机的flutter设置
博客指出Xcode编译Flutter项目时出现文件找不到、目录未找到、库未找到等报错。解决办法是在命令行执行flutter run后再用Xcode编译。原因是工程可能从其他电脑复制而来,缺少本机的Flutter设置。

901

被折叠的 条评论
为什么被折叠?



