ios - Installing CocoaPods on virtual machines -


i using os x ei capitan, version 10.11.4 using vmware

i able install gem using sudo gem install cocoa pods

i want use firebase in project , followed guideline mentioned on official website.

on pod install, getting below error

pod install --verbose  preparing  setting cocoapods master repo  cloning spec repo `master` `https://github.com/cocoapods/specs.git` (branch `master`)   $ /usr/bin/git clone https://github.com/cocoapods/specs.git master   cloning 'master'...   error: rpc failed; curl 56 sslread() return error -9806   fatal: remote end hung unexpectedly   fatal: eof   fatal: index-pack failed [!] unable add source url `https://github.com/cocoapods/specs.git` named `master`. (/usr/bin/git clone https://github.com/cocoapods/specs.git master  cloning 'master'... error: rpc failed; curl 56 sslread() return error -9806 fatal: remote end hung unexpectedly fatal: eof fatal: index-pack failed ) can try adding manually in `~/.cocoapods/repos` or via `pod repo add`.  /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/sources_manager.rb:35:in `rescue in find_or_create_source_with_url' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/sources_manager.rb:38:in `find_or_create_source_with_url' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:654:in `block in sources' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:653:in `map' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:653:in `sources' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:144:in `resolve_dependencies' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:114:in `install!' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/install.rb:37:in `run' /library/ruby/gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run' /library/ruby/gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>' /usr/local/bin/pod:23:in `load' /usr/local/bin/pod:23:in `<main>' 

what have tried far

went ~/.cocoapods/repos , executed below command

git clone https://github.com/cocoapods/specs.git master 

and got error

cloning 'master'... remote: counting objects: 798955, done. remote: compressing objects: 100% (26/26), done. ~/.cocoapods/repos   9% (73183/798955), 14.57 mib | 113.00 kib/s 

after above line hangs ever, no network activity on activity monitor

further, increased buffer size executing

git config --global http.postbuffer 157286400 

it connection problem. solve issue, have go vm settings bridge physical connection.

vmware player-->removable devices-->network adapter-->settings

you find network connection , check both

bridged: connected directly physical network

replicate physical network connection state(if using laptop).

check following link detail:

https://pubs.vmware.com/workstation-9/index.jsp?topic=%2fcom.vmware.ws.using.doc%2fguid-826323ad-d014-475d-8909-dfa73b5a3a57.html


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -