flutter create で作成するときに詰まったことなど

プロジェクトの作成

flutter create --project-name hogeApp ./

flutter run

No connected devices.が出る

qiita.com open -a Simulator

iosのバージョン?

Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
  • flutter clean

flutter doctor

qiita.com

cocoapods

sudo gem install cocoapods -n /usr/local/bin
pod setup

flutter channel

stableしかない問題

.git/configの設定がおかしいっぽい

shinriyo.hateblo.jp

その他

パッケージバージョンの競合

dependency_overrides 使う

yaba-blog.com

pod installでコケる

  • undefined methodeach_child'` が出る
    • channelをstableにする

ruby - Flutter pod install problem - undefined method `each_child' for #<Dir:0x00007fa6f7e2ec80> - Stack Overflow