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

Xcode 11.4真机运行flutter会出现

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

解决
1.删除Flutter分组下的App.framework和Flutter.framework.


截屏2020-04-12 下午3.44.11.png

2.修改Build Phases > Thin Binary > Shell为如下代码


/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin

再次运行

参考连接
Xcode 11.4 Support

你可能感兴趣的:(Building for iOS, but the linked and embedded framework 'App.framework' was built for iOS Simulator.)