../../../Documents/flutter_sdk/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:9:8: Error: Error when reading '../../../.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/vector_math_64.dart': Permission denied
import 'package:vector_math/vector_math_64.dart' show Vector3;
^
../../../Documents/flutter_sdk/flutter/packages/flutter/lib/src/material/ink_sparkle.dart:9:8: Error: Error when reading '../../../.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/vector_math_64.dart': Permission denied
安装环境
macOS: 13.2
Xcode : 14.3.1
flutter : 3.10.4
使用VS code 选择iOS模拟器运行时 flutter run ,一直报上面的错误信息,试了好多办法,最终解决方法:
flutter 下载地址
我把flutter SDK的版本重新下载了低一级的版本 flutter 3.10.3
再次使用vs code工具 终端运行flutter run (选择iOS模拟器),提示需要更新
等更新完,再此运行 flutter run就不报错了,模拟器也被运行起来了