1: 出現(xiàn)報(bào)錯(cuò)提示:
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
執(zhí)行即可解決:
sudo chmod -R 777 Demo(文件名)
2:出現(xiàn)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:出現(xiàn): 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'