flutter 报错总结

2022-12-28  本文已影响0人  奋斗的遗忘人

1: 出现报错提示:

Flutter failed to write to a file at "/Users/zhoutao/Desktop/Fulltter/demo02/.dart_tool/dartpad/web_plugin_registrant.dart".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.
Try running:
  sudo chown -R $(whoami) /Users/zhoutao/Desktop/Fulltter/demo02/.dart_tool/dartpad/web_plugin_registrant.dart

执行即可解决:

sudo chmod -R 777 Demo(文件名)

2:出现Error: To set up CocoaPods for ARM macOS, run:
sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc

终端输入:  sudo gem install ffi && sudo gem install ffi -- --enable-libffi-alloc

3:出现: Error output from CocoaPods:
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21/rbconfig.rb:230: warning: Insecure world writable dir /opt/homebrew/bin in PATH, mode 040777

则注释掉IOS->Podfile 中的 platform :ios, '10.0' 
上一篇 下一篇

猜你喜欢

热点阅读