Module ‘flutter_keyboard_visibility’ 在IOS上找不到。

huangapple go评论101阅读模式
英文:

Module 'flutter_keyboard_visibility' not found on IOS

问题

这是一个简单的Flutter项目。Android版本正常运行没有任何错误。

但问题出现在iOS版本。以下是错误的截图。

Module ‘flutter_keyboard_visibility’ 在IOS上找不到。

我已经删除了podfile并重新安装,但仍然没有解决问题!

英文:

This is a simple flutter project. Android version is running without any error.

But the Problem is in ios version. Here is the screenshot of the error. Module ‘flutter_keyboard_visibility’ 在IOS上找不到。

I have removed the podfile and reinstall again. But no luck!!

答案1

得分: 5

使用 Runner.xcworkspace 而不是 Runner.xcodeproj

英文:

Use Runner.xcworkspace instead of Runner.xcodeproj

答案2

得分: 4

我通过从我的pubspec.yaml文件中移除该模块并重新添加它来解决了这个问题。

手动清理派生数据。

flutter pub get(不包括flutter_keyboard_visibility)

flutter clean

flutter pub get(取消注释以重新安装它)

pod install

启动Runner.xcworkspace
构建并运行

编辑:如果您的问题出现在存档而不是运行中。看起来您的最低iOS版本太旧了。只需在Runner > Targets > Deployment Info中增加最低iOS版本(对我来说,iOS 11有效)。

英文:

I fixed the issue by removing the module from my pubspec.yaml and adding it again.

Clean derived data manually.

flutter pub get (without flutter_keyboard_visibility)

flutter clean

flutter pub get (uncomment to reinstall it)

pod install 

Launch Runner.xcworkspace
Build & Run

EDIT: If your problem is with the archive and not the run. It seems that your minimum ios version is too old. Simply increase the minimum iOS version in Runner > Targets > Deployment Info
(For me, iOS 11 works).

huangapple
  • 本文由 发表于 2020年1月6日 15:21:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/59608135.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定