英文:
Module 'flutter_keyboard_visibility' not found on IOS
问题
这是一个简单的Flutter项目。Android版本正常运行没有任何错误。
但问题出现在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.
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).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论