美文网首页
执行podinstall报错failed: undefined

执行podinstall报错failed: undefined

作者: 骑马纵天下 | 来源:发表于2020-03-13 19:45 被阅读0次

    报错详情:

    删除了很多输出内容
    huanghaipo-2:ios  pod install
    Analyzing dependencies
    
    ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
    
    ### Command
    
    
    /usr/local/bin/pod install
    
    
    ### Report
    
    * What did you do?
    
    * What did you expect to happen?
    
    * What happened instead?
    
    
    ### Stack
    
    
       CocoaPods : 1.8.4
            Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
        RubyGems : 3.0.6
            Host : Mac OS X 10.14.5 (18F132)
           Xcode : 11.3.1 (11C504)
             Git : git version 2.19.0
    Ruby lib dir : /Users/huanghaipo/.rvm/rubies/ruby-2.6.3/lib
    Repositories : HPSpecs - git - https://github.com/HuangHaiPo/HPSpecs.git @ 87ca8ef48b56269780abb0e14211ca1f2e121217
                   HuModularizationSpecs - git - git@gitlab.317hu.com:HuModularizationLibrary/HuModularizationSpecs.git @ cd28555226d424e50e8e7454c3a8a5b287e4b9f2
                   master - git - https://github.com/CocoaPods/Specs.git @ 061335ab06da5c1f542cdb56bc0d73f9af2d1984
    
    
    
    
    ### Podfile
    
    ruby
    source 'https://github.com/CocoaPods/Specs.git'
    
    # Uncomment this line to define a global platform for your project
     platform :ios, '9.0'
    
    
    ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
    
    [!] Oh no, an error occurred.
    
    Search for existing GitHub issues similar to yours:
    pe=Issues
    
    If none exists, create a ticket, with the template displayed above, on:
    https://github.com/CocoaPods/CocoaPods/issues/new
    
    Be sure to first read the contributing guide for details on how to properly submit a ticket:
    https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
    
    Don't forget to anonymize any private data!
    
    Looking for related issues on cocoapods/cocoapods...
    Searching for inspections failed: undefined method `map' for nil:NilClass
    
    

    解决办法:

    执行下方命令更新本地库,如果版本低在升级下cocoapods

    pod repo update
    升级
    sudo gem update --system
    sudo gem install cocoapods
    pod setup
    

    相关文章

      网友评论

          本文标题:执行podinstall报错failed: undefined

          本文链接:https://www.haomeiwen.com/subject/csqyshtx.html