Skip to content

Pod install error #24342

@hongruqi

Description

@hongruqi

Steps to Reproduce

  1. pod install

Podfile

flutter_application_path = 'path/development/my_flutter'
    
target 'DiSpecialDriverHK' do
...

end

Logs

[!] An error occurred while processing the post-install hook of the Podfile.

undefined method `real_path' for nil:NilClass

/Users/didi/DiSpecialDriverHK/Podfile:89:in `block (5 levels) in from_ruby'
/Users/didi/DiSpecialDriverHK/Podfile:87:in `each'
/Users/didi/DiSpecialDriverHK/Podfile:87:in `block (4 levels) in from_ruby'
/Users/didi/DiSpecialDriverHK/Podfile:86:in `each'
/Users/didi/DiSpecialDriverHK/Podfile:86:in `block (3 levels) in from_ruby'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.3.1/lib/cocoapods-core/podfile.rb:179:in `post_install!'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:619:in `run_podfile_post_install_hook'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:607:in `block in run_podfile_post_install_hooks'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/user_interface.rb:142:in `message'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:606:in `run_podfile_post_install_hooks'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:185:in `block in generate_pods_project'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:182:in `generate_pods_project'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/installer.rb:119:in `install!'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/command/install.rb:41:in `run'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/didi/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:52:in `run'
/Users/didi/.rvm/gems/ruby-2.5.1@global/gems/cocoapods-1.3.1/bin/pod:55:in `<top (required)>'
/Users/didi/.rvm/gems/ruby-2.5.1/bin/pod:23:in `load'
/Users/didi/.rvm/gems/ruby-2.5.1/bin/pod:23:in `<main>'
/Users/didi/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval'
/Users/didi/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
-->

<!-- If possible, paste the output of running `flutter doctor -v` here. -->

[✓] Flutter (Channel beta, v0.11.3, on Mac OS X 10.14 18A389, locale zh-Hans-CN)
    • Flutter version 0.11.3 at /Users/didi/development/flutter/flutter
    • Framework revision 72bf075e8d (4 days ago), 2018-11-09 20:36:17 -0800
    • Engine revision 5646e86a6f
    • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/didi/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode9.4.1.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    • ios-deploy 2.0.0
    ! CocoaPods out of date (1.5.0 is recommended).
        CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the
        Dart side.
        Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
        For more info, see https://flutter.io/platform-plugins
      To upgrade:
        brew upgrade cocoapods
        pod setup

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 30.0.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] VS Code (version 1.29.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[!] Connected device
    ! No devices available

! Doctor found issues in 4 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consoleplatform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions