当我尝试在 macOS 上运行 Flutter 应用程序时,出现以下错误:
error: could not write profile file: /Users/n/app/build/macos/Build/Products/Debug-prod/Sharezone.app/Contents/embedded.provisionprofile: fopen(/Users/n/app/build/macos/Build/Products/Debug-prod/Sharezone.app/Contents/embedded.provisionprofile, wb): Permission denied (13) (in target 'Runner' from project 'Runner')
Error: Build process failed
颤动版本:
Flutter 3.24.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4cf269e36d (5 days ago) • 2024-09-03 14:30:00 -0700
Engine • revision a6bd3f1de1
Tools • Dart 3.5.2 • DevTools 2.37.2
我通过运行以下命令修复了它:
sudo rm -rf build
flutter clean