0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Flutter環境下でiOSsimulatorが動かない時

0
Last updated at Posted at 2019-11-02

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環境)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?