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 バグ解消(CocoaPodsのver際によるエラー)

Posted at

事象 

firebase_authのインストール後、fluutter run実行。その際に下記エラーが発生。デフォルトのpodのversionは9.0だが、インストール対象のライブラリが9.0以上でないとインストールできないことが原因のようだ。

実行結果とエラー内容
~/develop/study/photoapp/ios $ flutter run
    [!] 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`.

修正方法

Podfileの二行目を修正。

Podfileの修正箇所
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0' 
platform :ios, '12.0' ←この行を追加する。

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
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?