[Flutter] Xcode11.4へのアップデートによるiOS用アプリビルドのエラーに対処する

flutter build iosビルド時にエラーが出るようになった。

$ flutter build ios --release
Building com.sample.appName for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 7ZD4G26432
Running Xcode build...

Xcode build done.                                           10.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    error: Building for iOS, but the linked and embedded framework 'App.framework' was built for iOS Simulator. (in target 'Runner' from project 'Runner')

Encountered error while building for device.

対処法はこちらhttps://github.com/flutter/flutter/issues/50568

ver: 11.3.1等のstable版に戻すか、rm -rf ios/Flutter/App.framework してApp.frameworkをリセットすると治る。