乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      CocoaPods 安裝 使用

       奇氣書(shū)齋 2016-01-16

      1.開(kāi)啟 terminal

      2.移除現(xiàn)有 Ruby 默認(rèn)源

      $ gem sources --remove https:///

      3.使用新的源

      $ gem sources -a https://ruby./

      4.驗(yàn)證新源是否替換成功

      $ gem sources -l

      5.安裝 CocoaPods

      $ sudo gem install cocoapods

      $ pod setup

      備注:蘋(píng)果系統(tǒng)升級(jí) OS X EL Capitan 后安裝改為:

      $ sudo gem install -n /usr/local/bin cocoapods

      $ pod setup

      6.更新 gem

      $ sudo gem update --system

      7.新建工程,并在終端用 cd 指令到文件夾內(nèi)

      $ pod search 第三方

      8.新建 Podfile 文件

      $ touch Podfile

      9.編輯 Podfile 文件,并寫(xiě)入要添加的第三方庫(kù)

      platform:ios, '8.0'

      pod 'AFNetworking', '~> 2.3.1'<-------第三方

      10.導(dǎo)入第三方庫(kù)

      $ pod install

      11.退出終端



      可能遇到的錯(cuò)誤提示及解決方法:


      Error 1:

      Error fetching http://ruby./:

      bad response Not Found 404 (http://ruby./specs.4.8.gz)

      解決方案:把安裝流程中 $ gem sources -a http://ruby./ 

      改為:$ gem sources -a https://ruby./


      Error 2:

      ERROR:  While executing gem ... (Errno::EPERM)

      Operation not permitted - /usr/bin/pod

      解決方案:蘋(píng)果系統(tǒng)升級(jí) OS X EL Capitan 后會(huì)出現(xiàn)的插件錯(cuò)誤,將安裝流程 5.安裝 CocoaPods 的 sudo gem install cocoapods

      改為 sudo gem install -n /usr/local/bin cocoapods


      Error 3:

      [!] Unable to satisfy the following requirements:

      - `AFNetworking (~> 2.3.1)` required by `Podfile`

      Specs satisfying the `AFNetworking (~> 2.3.1)` dependency were found, but they required a higher minimum deployment target.

      解決方案:Podfile 文件 中   platform:ios, ‘8.0’  后邊的 8.0 是平臺(tái)版本號(hào) ,一定要加上


      Error4:

      ――――――――― MARKDOWN TEMPLATE ――――――――――

      ### Report

      * What did you do?

      * What did you expect to happen?

      * What happened instead?

      ### Stack

      ```

      CocoaPods : 0.29.0

      Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

      RubyGems : 2.1.11

      Host : Mac OS X 10.9.2 (13C64)

      Xcode : 5.1 (5B130a)

      Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib

      Repositories : master - https://github.com/CocoaPods/Specs.git @ bd6736d07b16c98ab7a1dae04697cae002f25a9b

      ```

      ### Podfile

      ```ruby

      platform :ios,'8.0'

      pod 'MBProgressHUD', '~> 0.8'

      ```

      ### Error

      ```

      Psych::SyntaxError - (/Users/MAXJ/.cocoapods/repos/master/CocoaPods-version.yml): mapping values are not allowed in this context at line 3 column 4

      /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse'

      /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'

      /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in `parse'

      /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in `load'

      /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:in `block in load_file'

      /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:in `open'

      /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:in `load_file'

      /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:261:in `version_information'

      /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:222:in `repo_compatible?'

      /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:281:in `master_repo_functional?'

      /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:39:in `parse'

      /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:179:in `parse'

      /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:38:in `parse'

      /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:211:in `run'

      /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'

      /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `'

      /usr/bin/pod:23:in `load'

      /usr/bin/pod:23:in `'

      ```

      ―――――――――― TEMPLATE END ――――――――――

      [!] Oh no, an error occurred.

      Search for existing github issues similar to yours:

      https://github.com/CocoaPods/CocoaPods/search?q=%28%2FUsers%2FMAXJ%2F.cocoapods%2Frepos%2Fmaster%2FCocoaPods-version.yml%29%3A+mapping+values+are+not+allowed+in+this+context+at+line+3+column+4&type=Issues

      If none exists, create a ticket, with the template displayed above, on:

      https://github.com/CocoaPods/CocoaPods/issues/new

      Don't forget to anonymize any private data!

      解決方案:

      $ sudo rm -rf ~/.cocoapods/repos/master

      $ pod setup


        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多