颤抖的CocoaPods err(运行Pod安装)

时间:2019-04-15 03:46:37

标签: dart flutter

当我运行flutter run时,CocoaPods的errr,运行pod install时出错

稳定, updata pod,CocoaPods

CocoaPods' output:
↳
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    Fetching external sources
    -> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
    -> Fetching podspec for `barcode_scan` from `.symlinks/plugins/barcode_scan/ios`
    -> Fetching podspec for `flutter_full_pdf_viewer` from `.symlinks/plugins/flutter_full_pdf_viewer/ios`
    -> Fetching podspec for `flutter_record` from `.symlinks/plugins/flutter_record/ios`
    -> Fetching podspec for `flutter_vedio_compress` from `.symlinks/plugins/flutter_vedio_compress/ios`
    [!] No podspec found for `flutter_vedio_compress` in `.symlinks/plugins/flutter_vedio_compress/ios`
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/external_sources/path_source.rb:14:in `block in fetch'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/user_interface.rb:86:in `titled_section'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/external_sources/path_source.rb:11:in `fetch'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/analyzer.rb:825:in `fetch_external_source'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/analyzer.rb:804:in `block (2 levels) in fetch_external_sources'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/analyzer.rb:803:in `each'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/installer/analyzer.rb:803:in `block in fetch_external_sources'

1 个答案:

答案 0 :(得分:0)

我有一个类似的问题,当我更改pubspec.yaml中的某些依赖项时,在执行pod install时已停止接收错误。我所做的是引用依赖项的git链接而不是其版本号。

为了更清晰,而不是:

barcode_scan: ^1.0.0

我写过:

barcode_scan:
  git: git://github.com/apptreesoftware/flutter_barcode_reader.git