【发布时间】:2020-04-13 19:31:15
【问题描述】:
我正在尝试安装 webview_flutter 插件,但不知何故我的构建每次都失败
Launching lib/main.dart on iPhone 11 Pro in debug mode...
Running Xcode build...
├─Assembling Flutter resources... 10.2s
└─Compiling, linking and signing... 2.1s
Xcode build done.
17.5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
<path_to_project>ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal
error: module 'webview_flutter' not found
@import webview_flutter;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro.
pubspec.yml
dependencies:
flutter:
sdk: flutter
webview_flutter: ^0.3.19+8
我尝试运行,但没有解决。
flutter clean
flutter pub cache repair
【问题讨论】:
-
您找到解决方案了吗?我对最新版本的 webview_flutter 有同样的问题,所有推荐的解决方案都失败了。