3
1

More than 3 years have passed since last update.

flutterで特定のプラグインをインストールした後にiOSのbuildができない

Posted at

stripe_paymentを初期状態から試そうと思ったがbuild出来なくて、ハマった。

エラーメッセージ

Automatically assigning platform `iOS` with version `8.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でiOSのバージョンが指定されていない。
その場合は8.0を勝手に指定するそうで、そのバージョンが対応していないからエラーになっているのかな?

Podfileを見る

ios/Podfileの先頭にあるコードにプロジェクトごとにOSのバージョンを定義してねって書いてた。

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '10.6'

エラーメッセージあったリンク先を参考にverを10.6に指定してbuildしたら動いた。

# Uncomment this line to define a global platform for your project
platform :ios, '10.6'
3
1
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
3
1