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】iOSビルドでエラー「module 'xxx' not found」の対処

Posted at

発生するエラー

実行コマンド
$ flutter build ios --release
エラーログ
 [PROJECT_DIR]/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'device_info_plus' not found
 @import device_info_plus;
 ~~~~~~~~^~~~~~~~~~~~~~~~~
 1 error generated.

原因

下記(1)(2)のバージョンが一致していない事が原因。

(1) [PROJECT_DIR]/ios/Podfile

Podfile
platform :ios, '13.0'

(2) Xcodeの「Runner->General->Deployment Info」

xcode_ios_ver.png

対処

(2)の赤枠部分をクリックして、Podfileで指定したバージョンを設定する。

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?