如图所示,我遵循了这一点(只有前 3 分钟与我的问题相关):https ://m.youtube.com/watch?v=MYHVyl-juUk
当我尝试运行它时,它会出现在控制台中:
因为 geoflutterfire 2.0.3+2 依赖于 rxdart ^0.20.0 并且没有任何版本的 geoflutterfire 匹配 >2.0.3+2 <3.0.0,所以 geoflutterfire ^2.0.3+2 需要 rxdart ^0.20.0。所以,因为 my_app 同时依赖于 rxdart ^0.21.0 和 geoflutterfire ^2.0.3+2,版本求解失败。
当前版本(和我安装的版本)是 rxdart 0.21.0。我试图通过将其更改为 0.20.0 来降级它并获得颤振包,但它没有用。
顺便说一句,这是我第一次尝试插件,所以我对解决这类问题没有任何线索......
我能做些什么来完成这项工作?
亲切的问候
更新:
在我尝试了这个之后:
rxdart: any
控制台抛出了这个:
2019-04-08 12:06:04.178 defaults[36786:354646]
The domain/default pair of (/Users/privat/Documents/Dev/my_app/ios/Runner/Info, CFBundleIdentifier) does not exist
Xcode's output:
↳
/Library/flutter/.pub-cache/hosted/pub.dartlang.org/geoflutterfire-2.0.3+2/ios/Classes/GeoflutterfirePlugin.m:2:9: fatal error:
'geoflutterfire/geoflutterfire-Swift.h' file not found
#import <geoflutterfire/geoflutterfire-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
然后我编辑了 Podfile 代码:需要添加或编辑的代码标有“** ...... **”
target 'Runner' do
** use_frameworks! **
........ ......
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
** config.build_settings['SWIFT_VERSION'] = '4.0' **
end
end
end
然后我删除了我的 Podfile.lock 并再次尝试,应用程序编译成功。感谢C4C!