0

如图所示,我遵循了这一点(只有前 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!

4

3 回答 3

1
rxdart:any 

试一试,让我们知道会发生什么

于 2019-04-07T20:15:45.167 回答
0

旧版本可以在这里找到 - https://pub.dartlang.org/packages/rxdart#-versions-tab-

如果您由于旧版本而收到 AndroidX 错误,请查看此页面以解决 AndroidX 问题 - https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility

于 2019-04-07T20:11:22.243 回答
0

请尝试在 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 并尝试

于 2019-04-08T13:20:20.993 回答