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

之前Flutter项目都妥妥的,升级Xcode11.4后却报错。

error: Building for iOS, but the linked and embedded framework 'App.framework' was built for iOS Simulator. (in target 'Runner' from project 'Runner')

首先Clean下项目,在项目根目录下:

flutter clean

然后删除ios/Flutter/App.framework:

rm -rf ios/Flutter/App.framework

再次运行,应该就OK了。

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