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?

Flutterを導入してゲームを作ってみようと試みる(Flutter導入編)

Last updated at Posted at 2023-11-12

エンジニア駆け出し3年目ぐらいです。

普段は、pythonやらRubyやら使って、業務効率化アプリを作成しているものです。
ここ最近、ゲーム作りたいなぁという欲望があり、どれで作るよ??と悩んだ結果、Flutterでトライしてみようかなぁと思って導入を検討してみた。

導入

結構、手間取ったので、共有。
公式ページにも書いてある通りの手順をざっと、書く。
Apple Silicon(M1/M2/M3)だったら以下のコマンド手動て打ってねとのこと。

` sudo softwareupdate --install-rosetta --agree-to-license`

ここのページを参照して、[DL](https://docs.flutter.dev/get-started/install/macos#update-your-path)

ダウンロードしたら、解凍して、解凍後のページへ移動し、以下コマンドを入力。※通称PATHを通すってやつ
`export PATH="$PATH:`pwd`/flutter/bin"`

もし、永続的に、PATHを通したいということであれば、zshrcをvimとかnanoとかで開いて、上のコマンド書いてあげてね。

詰まったところ:flutter doctor

    - flutter doctorコマンドを打つ。以下内容
        Doctor summary (to see all details, run flutter doctor -v):
        [✓] Flutter (Channel stable, 3.13.9, on macOS 14.1 23B74 darwin-arm64, locale ja-JP)
        [✗] Android toolchain - develop for Android devices
        ✗ Unable to locate Android SDK.
        Install Android Studio from: https://developer.android.com/studio/index.html
        On first launch it will assist you in installing the Android SDK components.
        (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
        If the Android SDK has been installed to a custom location, please use
        `flutter config --android-sdk` to update to that location.
        [!] Xcode - develop for iOS and macOS (Xcode 15.0.1)
        ✗ Unable to get list of installed Simulator runtimes.
        ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that
        responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
        To install see https://guides.cocoapods.org/using/getting
        started.html#installation for instructions.
        [✓] Chrome - develop for the web
        [!] Android Studio (not installed)
        [✓] VS Code (version 1.84.0)
        [✓] Connected device (2 available)
        [✓] Network resources
        ! Doctor found issues in 3 categories.`

なんか色々と出た。
要するに、三つ引っかかってるとのことで、一つずつ解消していく

    1:Android Studioを導入せよ
    2:ruby のgemを使って、`sudo gem install cocoapods` せよ
    3:Xcodeのエミュレーターを導入せよ

結論としてはこの3つを導入して解消。

先は長そうだ笑

参考になれば幸いです。

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?