美文网首页
flutter 报错总结

flutter 报错总结

作者: 奋斗的遗忘人 | 来源:发表于2022-12-28 15:25 被阅读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' 

相关文章

网友评论

      本文标题:flutter 报错总结

      本文链接:https://www.haomeiwen.com/subject/qugztdtx.html