运行Flutter出现如下错误:
Running Xcode build...
Xcode build done. 8.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/wdyzmx/Desktop/MyFlutter/myflutterapp/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder information, or similar detritus not allowed
Command CodeSign failed with a nonzero exit code
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
解决方法,终端(命令行)cd到项目目录,运行xattr -rc .
网友评论