我试图在VS代码上构建Flutter示例项目,但得到了这些消息......示例正在Android设备上构建并运行良好,我也尝试在iOS模拟器上运行Android Studio示例这也没关系。它只是不适用于VS Code。有没有人遇到同样的问题?
颤振:v0.2.2
Launching lib/main.dart on iPhone 8 in debug mode...
Xcode build done
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/Sean/Documents/myapp/build/ios/Debug-iphonesimulator/Runner.app:resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
Could not build the application for the simulator.
Error launching application on iPhone 8.
Exited (sigterm)
答案 0 :(得分:2)
这是Xcode构建系统中的一项新的安全措施。
您可以在此处进行详细说明:https://stackoverflow.com/a/39667628/6622328
要快速修复,只需在重新构建应用程序之前对其进行清理(清理干净)即可。
答案 1 :(得分:0)
我怀疑您没有安装XCode,或者已为您的开发者ID启用了Runner项目。