• cocoa pods 命令不执行command not found


    bogon:~ mrbtios01$ cd Desktop/改版app/lingMoney新改版的

    //当出现如下问题时:

    bogon:lingMoney新改版的 mrbtios01$ vim podfile

    bogon:lingMoney新改版的 mrbtios01$ pod imstall

    -bash: pod: command not found

    //1,删除cocoapods

    bogon:lingMoney新改版的 mrbtios01$ sudo gem uninstall cocoapods

    Password:

    Select gem to uninstall:

     1. cocoapods-0.39.0

     2. cocoapods-1.0.1

     3. cocoapods-1.1.1

     4. cocoapods-1.2.0

     5. All versions

    > 5

    Successfully uninstalled cocoapods-0.39.0

    Successfully uninstalled cocoapods-1.0.1

    Successfully uninstalled cocoapods-1.1.1

    Remove executables:

    pod, sandbox-pod

    in addition to the gem? [Yn]  y

    Removing pod

    Removing sandbox-pod

    Successfully uninstalled cocoapods-1.2.0

    //2.重装cocoapods

    bogon:lingMoney新改版的 mrbtios01$ sudo gem install -n /usr/local/bin cocoapods Successfully installed xcodeproj-1.4.4

    Fetching: ruby-macho-1.1.0.gem (100%)

    Successfully installed ruby-macho-1.1.0

    Fetching: molinillo-0.5.7.gem (100%)

    Successfully installed molinillo-0.5.7

    Fetching: cocoapods-trunk-1.2.0.gem (100%)

    Successfully installed cocoapods-trunk-1.2.0

    Fetching: cocoapods-core-1.2.1.gem (100%)

    Successfully installed cocoapods-core-1.2.1

    Fetching: cocoapods-1.2.1.gem (100%)

    Successfully installed cocoapods-1.2.1

    Parsing documentation for xcodeproj-1.4.4

    Installing ri documentation for xcodeproj-1.4.4

    Parsing documentation for ruby-macho-1.1.0

    Installing ri documentation for ruby-macho-1.1.0

    Parsing documentation for molinillo-0.5.7

    Installing ri documentation for molinillo-0.5.7

    Parsing documentation for cocoapods-trunk-1.2.0

    Installing ri documentation for cocoapods-trunk-1.2.0

    Parsing documentation for cocoapods-core-1.2.1

    Installing ri documentation for cocoapods-core-1.2.1

    Parsing documentation for cocoapods-1.2.1

    Installing ri documentation for cocoapods-1.2.1

    6 gems installed

    //3.这句话很重要(写了就能使,不要问为什么-----)

    bogon:lingMoney新改版的 mrbtios01$ sudo chmod +rx /usr/local/bin

    bogon:lingMoney新改版的 mrbtios01$ pod --version

    1.2.1

    bogon:lingMoney新改版的 mrbtios01$ pod search AFNetworking

    Creating search index for spec repo 'master'..

     Done!

    ^[[Abogon:lingMoney新改版的 mrbtios01$ pod install

    总结:进入podfile i编辑  esc退出编辑 :wq退出并保存 

    原创作品,有问题可以留言讨论,谢谢....

     文章内容为本人亲测好使,如解决不了您的问题,请继续研究,如有雷同,纯属巧合

  • 相关阅读:
    Go 笔记之如何防止 goroutine 泄露
    调试 Go 的代码生成
    使用k8s容器钩子触发事件
    springboot教程
    Intellij IDEA 使用Spring-boot-devTools无效解决办法
    c# WMI获取机器硬件信息(硬盘,cpu,内存等)
    各式 Web 前端開發工具整理
    Informix 中执行多条SQL(Execute Script)
    Log4Net
    mysql 按年度、季度、月度、周、日SQL统计查询
  • 原文地址:https://www.cnblogs.com/ccw-congcong/p/6732557.html
Copyright © 2020-2023  润新知