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

[Flutter] Gitリポジトリからダウンロードしたプログラムでエラー

Posted at

はじめに

Windowsで作成したFlutterアプリをGitリポジトリを通してMacにダウンロード。 それを起動させようとしたらエラーが出てきた。 Firebase関連のプラグインのバージョンを変えたりして、試行錯誤していたら余計にハマった。 バージョンがあってないやら、ファイルがみつからないやら、、、、、 あまりにも適当にやりすぎてエラーを再現できないが、備忘録としてエラー回避できた方法をいくつか残す。

エラー内容

Error output from CocoaPods:
↳
    [!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no
    platform was specified. Please specify a platform for this target in your Podfile. See
    `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Exception: Error running pod install

対策①

1.ダウンロードしたプログラムファイルの``プログラム名/ios/Runner.xcworkspace``を``xcode``で開く 2.赤枠で囲んだ部分のバージョンを``iOS 13.0``に変更 ![dev001.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/223039/80ccd36a-0dff-7d79-e16d-8343f4181e8d.png) 3.``xcode``を保存して閉じる 4.``flutter run``

対策②

1.``flutter clean`` 2.``flutter build``

対策③

1.flutter clean
2.flutter pub get
3.cd ios
4.pod install
5.pod repo update
6.pod update
7.cd ..
8.flutter run

対策④

1.対策①の3までやる
2.対策③を全部やる

参考URL

https://github.com/FirebaseExtended/flutterfire/issues/1979 https://dolphinetech.com/flutter/error-running-pod-install/ https://fluttercorner.com/solved-error-could-not-find-included-file-generated-xcconfig-in-search-paths-in-target-runner/

最後に

エラーが出るとどうしてもあわわなる、、、 落ち着いてエラー内容をちゃんと読めば何とかなるさ!

最初からMacで作ればいいじゃない

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?