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

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

问题原因:Xcode升级到11.4版本后,运行虚拟机后 再运行在真机上报如上异常

解决方案:
https://flutter.dev/docs/development/ios-project-migration

https://github.com/flutter/flutter/issues/50568

最后再执行 flutter build iOS 即可解决该问题。

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