Flatter继续导入旧版本的iOS插件

Flatter继续导入旧版本的iOS插件,ios,dart,flutter,cocoapods,Ios,Dart,Flutter,Cocoapods,我已经创建了一个插件,可以在下面的url中找到 我在单独的颤振项目的pubspec中导入了插件,如下所示 upetch_paysquare_service: ^0.0.7 post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_V

我已经创建了一个插件,可以在下面的url中找到

我在单独的颤振项目的pubspec中导入了插件,如下所示

upetch_paysquare_service: ^0.0.7
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '4.2'  # required
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end
Android部分工作正常。当我在Xcode中打开要在iOS设备上运行的项目时,我收到一个错误消息说
找不到包含文件的pod..

所以我决定更新我的播客 我去了终端,我一直收到错误,说我并没有在我的插件中指定任何swift版本,但我已经在插件项目的pod文件中指定了swift版本,如下所示

upetch_paysquare_service: ^0.0.7
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '4.2'  # required
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end
我的主要问题是,无论何时进行
pod更新
pod安装
,安装的插件版本都是0.0.2,但我正在我的
pubspec.yaml
文件中导入版本0.0.7

这是截图


在您的案例中,我查看了github上的插件源代码,发现您没有在文件中更新插件的版本

这是您当前的版本:

Pod::Spec.new do |s|
  s.name             = 'upetch_paysquare_service'
  s.version          = '0.0.2'#I Think you should update this field with '0.0.7'
  s.summary          = 'A Flutter plugin for RazorPay SDK'
s.description = <<-DESC
Pod::Spec.new do|s|
s、 名称='upetch\u paysquare\u服务'
s、 version='0.0.2'#我认为应该用'0.0.7'更新此字段
s、 summary='RazorPay SDK的颤振插件'

s、 description=检查Podfile.lock文件以查看选择pod版本的原因。@PaulBeusterien对于我的插件项目或使用pubspec.yaml文件中插件依赖项的项目???@PaulBeusterien我找不到任何Podfile.lock,你是说pub spec.lock文件吗?@PaulBeusterien我检查了pubspec.lock文件,它是否导入了正确的版本0.0.7,但我不明白为什么iOS导入了错误的版本我也得到了这个,我需要知道为什么…我会尝试一下,让你知道