【发布时间】:2020-11-16 19:24:46
【问题描述】:
在我的应用程序中,我使用颤振本地通知在本地推送通知,包的版本是:flutter_local_notifications: ^1.4.4+4。它在android上运行得很好。但它在 Xcode 上抛出一个错误,说“找不到模块 flutter_local_notifications”。不知道是什么导致了这个问题,感谢任何帮助。
这是我的错误:
fatal error: module 'flutter_local_notifications' not found
@import flutter_local_notifications;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
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 Max.
【问题讨论】:
-
能否指定Xcode版本和COCOAPODS版本?
-
CocoaPods:1.10.0 和 Xcode:12.2 版
-
你在 Xcode 中打开 ios 模块并尝试构建它吗?
-
是的,runner.xcworkspace
-
也可以指定Flutter版本吗?