• cocoapods安装


    //1.如何安装cocoapods
    首先打开终端:
    1==> gem sources --remove https://rubygems.org/
    打印结果:source https://rubygems.org/ not present in cache
    
    2==》 gem sources -a https://ruby.taobao.org/  (找到淘宝镜像)
    打印结果:https://ruby.taobao.org/ added to sources
    
    3==》 gem sources -l
    打印结果:*** CURRENT SOURCES ***
    
    https://ruby.taobao.org/
    
    4==》sudo gem install cocoapods(开始安装cocoapods)
    
    这是你需要输入密码(这里需要注意密码是不会显示出来的,无需在意,输完即可,等一分钟左右一般就安装成功了)
    
    打印信息如下:
    Fetching: i18n-0.7.0.gem (100%)
    Successfully installed i18n-0.7.0
    Fetching: thread_safe-0.3.5.gem (100%)
    Successfully installed thread_safe-0.3.5
    Fetching: tzinfo-1.2.2.gem (100%)
    Successfully installed tzinfo-1.2.2
    Fetching: minitest-5.8.3.gem (100%)
    Successfully installed minitest-5.8.3
    Fetching: activesupport-4.2.5.gem (100%)
    Successfully installed activesupport-4.2.5
    Fetching: nap-1.0.0.gem (100%)
    Successfully installed nap-1.0.0
    Fetching: fuzzy_match-2.0.4.gem (100%)
    Successfully installed fuzzy_match-2.0.4
    Fetching: cocoapods-core-0.39.0.gem (100%)
    Successfully installed cocoapods-core-0.39.0
    Fetching: claide-0.9.1.gem (100%)
    Successfully installed claide-0.9.1
    Fetching: colored-1.2.gem (100%)
    Successfully installed colored-1.2
    Fetching: xcodeproj-0.28.2.gem (100%)
    Successfully installed xcodeproj-0.28.2
    Fetching: cocoapods-downloader-0.9.3.gem (100%)
    Successfully installed cocoapods-downloader-0.9.3
    Fetching: cocoapods-plugins-0.4.2.gem (100%)
    Successfully installed cocoapods-plugins-0.4.2
    Fetching: cocoapods-search-0.1.0.gem (100%)
    Successfully installed cocoapods-search-0.1.0
    Fetching: cocoapods-stats-0.6.2.gem (100%)
    Successfully installed cocoapods-stats-0.6.2
    Fetching: cocoapods-try-0.5.1.gem (100%)
    Successfully installed cocoapods-try-0.5.1
    Fetching: netrc-0.7.8.gem (100%)
    Successfully installed netrc-0.7.8
    Fetching: cocoapods-trunk-0.6.4.gem (100%)
    Successfully installed cocoapods-trunk-0.6.4
    Fetching: molinillo-0.4.0.gem (100%)
    Successfully installed molinillo-0.4.0
    Fetching: escape-0.0.4.gem (100%)
    Successfully installed escape-0.0.4
    Fetching: cocoapods-0.39.0.gem (100%)
    Successfully installed cocoapods-0.39.0
    Parsing documentation for i18n-0.7.0
    Installing ri documentation for i18n-0.7.0
    Parsing documentation for thread_safe-0.3.5
    Installing ri documentation for thread_safe-0.3.5
    Parsing documentation for tzinfo-1.2.2
    Installing ri documentation for tzinfo-1.2.2
    Parsing documentation for minitest-5.8.3
    Installing ri documentation for minitest-5.8.3
    Parsing documentation for activesupport-4.2.5
    unable to convert "x84" from ASCII-8BIT to UTF-8 for lib/active_support/values/unicode_tables.dat, skipping
    Installing ri documentation for activesupport-4.2.5
    Parsing documentation for nap-1.0.0
    Installing ri documentation for nap-1.0.0
    Parsing documentation for fuzzy_match-2.0.4
    Installing ri documentation for fuzzy_match-2.0.4
    Parsing documentation for cocoapods-core-0.39.0
    Installing ri documentation for cocoapods-core-0.39.0
    Parsing documentation for claide-0.9.1
    Installing ri documentation for claide-0.9.1
    Parsing documentation for colored-1.2
    Installing ri documentation for colored-1.2
    Parsing documentation for xcodeproj-0.28.2
    Installing ri documentation for xcodeproj-0.28.2
    Parsing documentation for cocoapods-downloader-0.9.3
    Installing ri documentation for cocoapods-downloader-0.9.3
    Parsing documentation for cocoapods-plugins-0.4.2
    Installing ri documentation for cocoapods-plugins-0.4.2
    Parsing documentation for cocoapods-search-0.1.0
    Installing ri documentation for cocoapods-search-0.1.0
    Parsing documentation for cocoapods-stats-0.6.2
    Installing ri documentation for cocoapods-stats-0.6.2
    Parsing documentation for cocoapods-try-0.5.1
    Installing ri documentation for cocoapods-try-0.5.1
    Parsing documentation for netrc-0.7.8
    Installing ri documentation for netrc-0.7.8
    Parsing documentation for cocoapods-trunk-0.6.4
    Installing ri documentation for cocoapods-trunk-0.6.4
    Parsing documentation for molinillo-0.4.0
    Installing ri documentation for molinillo-0.4.0
    Parsing documentation for escape-0.0.4
    Installing ri documentation for escape-0.0.4
    Parsing documentation for cocoapods-0.39.0
    Installing ri documentation for cocoapods-0.39.0
    21 gems installed
    
    5==》 我们来使用:  pod search AFNetworking
  • 相关阅读:
    数据可视化
    tkinter学习04
    小练习-----银行提款机系统
    python___docx模块
    Django【进阶篇 】
    Django之Cookie/session/防止XSS攻击
    tkinter学习03
    tkinter学习02
    AJAX
    tkinter学习01
  • 原文地址:https://www.cnblogs.com/brance/p/5007112.html
Copyright © 2020-2023  润新知