1
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 3 years have passed since last update.

Flutter セットアップ備忘録

Last updated at Posted at 2022-10-10

マックの環境構築

Android toolchain

エラーが出ている場合。
image.png

image.png

まずは、SDK Platformを何か入れましょう。
Android SDKのSDK Toolsタブから何か入れる。

image.png
次にSDK Toolsタブから入れてください。
image.png
入れたらコマンドを実行したら完了。

flutter doctor --android-licenses

Xcode

エラーが出ている場合。
image.png

このコマンドで入ると書いてあるが入らない。

sudo gem install cocoapods

パッケージインストールツールがあるらしい。これが brew というツール。
Homebrew
このコマンドを実効すると brew がインストールされます。

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

簡単に入りました。

brew install cocoapods

でもこれは、MacBook Pro 2013の場合で、最新のmacOSが入らないし、XCodeが最新が入らないのでiOS16が対象外。最近買ったMac miniでは入った。

でもでもXCodeでiPhoneをターゲットにするとimport Flutterではエラーとなってしまう。いったんこのサイトを、備忘録として載せる。

参考サイト
https://docs.flutter.dev/get-started/install/macos#install-xcode
https://zenn.dev/kboy/books/ca6a9c93fd23f3/viewer/5232dc
https://b1san-blog.com/post/flutter/flutter-setup/

1
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
1
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?