Building for iOS Simulator, but the linked and embedded framework 'App.frame'

在使用android studio运行flutter项目时,报如下错误:

building for is simulator but the linked and embedded framework ‘app.framework’ was built for ios

这是什么问题呢?其实是项目中已经存在的App.framework和当前编译的模式不一致。解决的办法很简单:

删除 ios/Flutter/App.framework

然后运行项目,会重新生成App.framework,问题解决!

你可能感兴趣的:(flutter,ios,flutter,xcode)