【Flutter】”Module ‘flutter_inappwebview’ not found Xcode”と出た場合の対処方法

本記事では、以下のエラーについて解決方法をまとめました。

“Module ‘flutter_inappwebview’ not found Xcode”

Flutterで作成したものをXcodeでArchiveしようとした際に出てきました。

目次

原因

下記二つを試してみてください。

Pod installがされていない

Android studioのターミナルで、cd iosを打ってiOSアプリ用フォルダに移動した後に、flutter clean→flutter pub get→pod installを実行します。
もう一度flutter ios buildをしてみてください。

target versionが低い

エラー文を遡ると、下記のように書いてありました。

warning: The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0, but the range of supported
deployment target versions is 9.0 to 15.2.99. (in target ‘OrderedSet’ from project ‘Pods’)

試しに、Project>InfoのDeployment Targetを14.0に、Podfile内も同様にしたところ、治りました。

参考資料

GitHub
Module 'flutter_inappwebview' not found Xcode · Issue #458 · pichillilorenzo/flutter_inappwebview When I try to build the app it comes up with the error message: "Module 'flutter_inappwebview' not found". Can't find where this is coming from because me PodsF...
よかったらシェアしてね!

コメント

コメントする

CAPTCHA


目次
閉じる