Flutter環境構築後にemulatorでbuildしていましたが、Cupertinoを使用したいと思い、
simulatorを起動したらbuildできなかった。
(flutter doctorコマンドは正常に通る)
下記errorはvscode上のdebug consoleの結果
$ flutter run
Launching lib/main.dart on iPhone 11 in debug mode...
Running Xcode build...
├─Assembling Flutter resources... 6.2s
└─Compiling, linking and signing... 1.1s
Xcode build done. 8.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11.
下記コマンドを実行したところ、build出来ました。(一応プロジェクト配下でコマンドを叩いています)
$ flutter channel master (僕の環境だとdevだったのでmasterに切り替えた)
flutter channelコマンドで自身のflutter環境を確認出来ます。(*の付いているところが自身のflutter環境)