我正在尝试安装 webview_flutter 插件,但不知何故我的构建每次都失败
\n\nLaunching lib/main.dart on iPhone 11 Pro in debug mode...\n\nRunning Xcode build...\n\n \xe2\x94\x9c\xe2\x94\x80Assembling Flutter resources... 10.2s\n \xe2\x94\x94\xe2\x94\x80Compiling, linking and signing... 2.1s\nXcode build done.\n17.5s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n ** BUILD FAILED **\n\n\nXcode's output:\n\xe2\x86\xb3\n <path_to_project>ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal\n error: module 'webview_flutter' not found\n @import webview_flutter;\n ~~~~~~~^~~~~~~~~~~~~~~\n 1 error generated.\n note: Using new build system\n note: Building targets in parallel\n note: Planning build\n note: Constructing build description\n\nCould not build the application for the simulator.\nError launching application on iPhone 11 Pro.\nRun Code Online (Sandbox Code Playgroud)\n\npubspec.yml
\n\ndependencies:\n flutter:\n sdk: flutter\n\n webview_flutter: ^0.3.19+8\nRun Code Online (Sandbox Code Playgroud)\n\n我尝试运行但没有解决问题。
\n\nflutter clean
flutter pub cache repair
您是否遵循了此插件的 iOS 的所有安装?
这是来自webview_flutter页面本身:
要在 iOS 上使用此插件,您需要通过向应用程序的 Info.plist 文件添加布尔属性(键为 io.flutter.embedded_views_preview 且值为 YES)来选择嵌入视图预览。
这似乎也有关,看看:https ://github.com/flutter/flutter/issues/50190
| 归档时间: |
|
| 查看次数: |
5543 次 |
| 最近记录: |