Flutter:firebase_performance插件无法在iOS上安装Pod

时间:2020-06-20 22:08:36

标签: firebase flutter rubygems cocoapods firebase-performance

当我将firebase_performance(0.3.2)添加到pubspec.yaml时,pod安装失败。我在下面显示了输出。

Flutter Doctor有0个问题。

我不太确定firebase_performance插件正在犯哪个错误。

Running "flutter pub get" in my_app...                          1.6s
Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install...                                             11.7s
CocoaPods' output:
↳
     
    ...

    [!] The 'Pods-Runner' target has libraries with conflicting names: libgoogleutilities.a.

    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:67:in `verify_no_duplicate_names'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:58:in `block (2 levels) in verify_no_duplicate_framework_and_library_names'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:48:in `each_key'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:48:in `block in verify_no_duplicate_framework_and_library_names'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:47:in `each'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:47:in `verify_no_duplicate_framework_and_library_names'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:37:in `validate!'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:590:in `validate_targets'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:158:in `install!'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/command/install.rb:52:in `run'
    /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'

Error output from CocoaPods:
↳
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/cdn_source.rb:342: warning: URI.escape is obsolete

    ...

    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/cdn_source.rb:342: warning: URI.escape is obsolete
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/downloader/cache.rb:114: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/downloader/request.rb:61: warning: The called method `slug' is defined here
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/downloader/cache.rb:100: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
    /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/downloader/request.rb:61: warning: The called method `slug' is defined here

Error running pod install
Error launching application on iPhone 11.

1 个答案:

答案 0 :(得分:0)

通过删除Podfile.lock文件然后重新启动应用程序来解决此问题。