pod install fails with error: error:1006706B:elliptic curve routines - ios

I have two Macs both up to date with OS X and Xcode. On one, I can install cocoapods and the pods specified in my project's podfile. The other fails:
pod install --verbose Preparing
Updating local specs repositories
Creating shallow clone of spec repo master from
https://github.com/CocoaPods/Specs.git $ /opt/local/bin/git clone
https://github.com/CocoaPods/Specs.git master --depth=1 Cloning into
'master'... error: error:1006706B:elliptic curve
routines:ec_GFp_simple_oct2point:point is not on curve while accessing
https://github.com/CocoaPods/Specs.git/info/refs?service=git-upload-pack
fatal: HTTP request failed [!] Unable to add a source with url
https://github.com/CocoaPods/Specs.git named master. You can try
adding it manually in ~/.cocoapods/repos or via pod repo add.
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/sources_manager.rb:48:in
rescue in find_or_create_source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/sources_manager.rb:53:in
find_or_create_source_with_url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer/analyzer.rb:616:in block in sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer/analyzer.rb:615:inmap'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer/analyzer.rb:615:in sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer/analyzer.rb:211:inupdate_repositories'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:129:in
block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/user_interface.rb:59:in
section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:128:in
resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:104:in
install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/command/project.rb:71:in
run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/command/project.rb:101:in
run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.9.1/lib/claide/command.rb:312:in
run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/command.rb:48:in
run' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/bin/pod:44:in
<top (required)>' /usr/bin/pod:23:inload' /usr/bin/pod:23:in
`'
I've completely uninstalled and reinstalled cocoapods and tried everything else remotely relevant on SO. To me it smells like an encryption/decryption issue or https/ssl issue.
On the machine having trouble, I did have a pre-beta Xcode installed, but I've since deleted it and made sure it's command line tools are set correctly.
Anyone have suggestion on how to remedy this or diagnosis it further?

I resorted to taking drastic action. I uninstalled Xcode (app, libraries, preferences), uninstalled cocoapods, and uninstalled MacPorts (I could have had an old port getting in the mix). Reinstalled Xcode and cocoapods and now it works.

Related

Unable to setup Cocoapods, pod setup --verbose command failed

I'm trying to install cocoapods on my mac to use for iOS apps. So before finding a cocoapod tutorial, I may have tried to install a cocoapod for an xcode project with pod init and some other random things. I don't think pod init worked but another similar command did something
I then decided it would be a better idea to follow a tutorial from the beginning, so I started with installing cocoapods with the sudo gem install cocoapods, which worked.
However, when I typed pod setup --verbose, terminal threw an error which also happened when I typed pod setup
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in `git_version': Failed to extract git version from `git --version` ("xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun\n") (RuntimeError)
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:130:in `verify_minimum_git_version!'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:49:in `run'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:22:in `load'
from /usr/local/bin/pod:22:in `<main>'
Please help, I can't find any answers on stackoverflow or any other website.
Based on the error message you are getting, it seems like you don't have command line tools installed. You need to install that and then go to Xcode -> Preferences -> Locations -> Command Line Tools and confirm you have current Xcode version selected there.

You cannot run CocoaPods as root (Ionic) iOS

I am getting this error, when i am installing 'phonegap-plugin-push' i m getting the following error, i think i am having trouble installing pods.
Thanks in advance
Failed to install 'phonegap-plugin-push':undefined
Error: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ repo Manage spec-repositories
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ update Update outdated project dependencies and create new Podfile.lock
Options:
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:47:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
did you use install it with using sudo ?
that's why it gave you error. you can directly install with without using sudo. It should work.
fixed this issue, there was folder rights issue

Installing CocoaPods on virtual machines

I am using OS X El Capitan, Version 10.11.4 using VMWare
I am able to install the gem by using sudo gem install cocoa pods
I want to use Firebase in my project and followed the guideline mentioned on official website.
On pod install, I am getting the below error
pod install --verbose
Preparing
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.
(/usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
)
You can try adding it 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 i have tried so far
Went to ~/.cocoapods/repos and executed the below command
git clone https://github.com/CocoaPods/Specs.git master
And got error
Cloning into '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 it hangs for ever, With no network activity on Activity monitor
Further, I increased the buffer size by executing
git config --global http.postBuffer 157286400
It is a connection problem.
To solve this issue, you have to go to VM settings to Bridge the physical connection.
VMware Player-->Removable Devices-->Network Adapter-->settings
You will find Network connection and check both
Bridged: Connected directly to the physical network
Replicate physical network connection state(if you are using a laptop).
Check following link for detail:
https://pubs.vmware.com/workstation-9/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-826323AD-D014-475D-8909-DFA73B5A3A57.html
It takes some time for Cloning into 'master'... You should wait for few minutes to complete it.
I'm not sure about this particular error, but I solved similar error in either:
downloading the needed library through Windows operating system, then copy the library
to maciOS on the VMware. (download still takes a very long time though, about a day)
upgrading my RAM and get 12GB of ram and using ssd hard. This makes it very easy to
develop using VMWare

Cannot install a pod (fatal: unable to access 'https://github.com/CocoaPods/Specs.git/')

I'm trying to use the command pod install and always have that :
$ pod setup
OR
$ sudo pod setup
Setting up CocoaPods master repo
[!] Pod::Executable clone 'https://github.com/CocoaPods/Specs.git' master
Cloning into 'master'...
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': Failed connect to github.com:443; Operation timed out
/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:217:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:210:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
I have no idea what this is about. Can someone help me? This is the first time I try to do anything with CocoaPods on OS X Mavericks.
Thanks!
First please check your network, you can use curl or git clone to check it directly under terminal
If you have another problem you can try gem uninstall claide and then install it
Or you can try ruby 1.9
cocoapods 0.29 and claide 0.4.0 works fine under my ruby 1.9 env
you can use rvm to work with different ruby env
I got the same issue while using a virtual machine. I started getting the error after switching connection to Bridged. The problem was that the machine had no MAC address generated.
Solution: Go to Network Adapter settings -> Advanced -> press
Generate MAC Address

Cannot install capybara-webkit on Mac OS

I've been following instructions to install capybara-webkit on Mac OS X 10.8. I've downloaded and installed:
qt-mac-opensource-4.8.5
qt-mac-opensource-4.8.5-debug-libs
Xcode Command Line tools + I later installed full XCode 5.0
qt4 using brew
Not necessary in this order
Running gem install capybara-webkit throws an error
# lots of output omitted
/Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1620:in `stat': No such file or directory - src/webkit_server (Errno::ENOENT)
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1620:in `block in fu_each_src_dest'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1633:in `fu_each_src_dest0'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1618:in `fu_each_src_dest'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:466:in `cp'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/lib/capybara_webkit_builder.rb:76:in `build'
from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/lib/capybara_webkit_builder.rb:88:in `build_all'
from extconf.rb:2:in `<main>'
Gem files will remain installed in /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0 for inspection.
Results logged to /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/./gem_make.out
I've tried reinstalling qt, installing XQuartz-2.7.4, ... without luck. There is no trace of similar problems on Github :(
Here's some additional info should it help someone figure out the cause - http://pastie.org/8355714.
Feeling silly answering my own question but looks like I needed to actually run XCode and accept their terms and conditions. After doing that running gem install capybara-webkit worked.

Resources