Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cocoapods-keys installation? #135

Open
reststop opened this issue May 4, 2016 · 17 comments
Open

cocoapods-keys installation? #135

reststop opened this issue May 4, 2016 · 17 comments

Comments

@reststop
Copy link

reststop commented May 4, 2016

Sorry to post this here, but searching the usual suspects has turned up not much, and most cocoapods info is so clear I can't believe I cannot find an answer....

Trying to setup a project cloned from github which uses the latest coccoapods app, and cocoapods-keys.

I've blown away all my old versions of cocoapods and installed the command line tools from the app.
version 1.0.0.rc.1 (also tried it with an earlier 0.5 beta with similar results)

jet:Buildasaur carl$ pod install
[!] Your Podfile requires that the plugin cocoapods-keys be installed. Please install it and try installation again.

(previously installed with 'sudo gem install cocoapods-keys' which installed version 1.6.1)
Apparently that's not enough? Have to do a 'pod plugins install' as well? No clear directions.

jet:Buildasaur carl$ pod plugins install cocoapods-keys
Installing plugins: cocoapods-keys
[!] /Users/carl/Applications/CocoaPods.app/Contents/Resources/bundle/bin/gem install --no-document --env-shebang --file /var/folders/4l/snyzdyts5m9gb5zyz052rq780000gn/T/cocoapods-plugins-install-cocoapods-keys20160504-49525-1w1um82

ERROR: While executing gem ... (Gem::UnsatisfiableDependencyError)
Unable to resolve dependency: user requested 'io-console (= 0.4.3)'

jet:Buildasaur carl$ pod plugins install keys
Installing plugins: keys
[!] /Users/carl/Applications/CocoaPods.app/Contents/Resources/bundle/bin/gem install --no-document --env-shebang --file /var/folders/4l/snyzdyts5m9gb5zyz052rq780000gn/T/cocoapods-plugins-install-keys20160504-49536-1o8vbug

ERROR: While executing gem ... (Gem::UnsatisfiableDependencyError)
Unable to resolve dependency: user requested 'io-console (= 0.4.3)'

OK, something's up with io-console ...

jet:Buildasaur carl$ gem list io-console --remote --all
*** REMOTE GEMS ***
io-console (0.4.5, 0.4.2, 0.4.1, 0.3)

There is no currently available io-console (=0.4.3)

Help. I'm stuck. I can remove the cocoapods-keys entries from the Podfile, but eventually I'm going to need it I think.

@orta
Copy link
Owner

orta commented May 4, 2016

You should use Bundler it's built specifically for this purpose, here's the cocoapods guide on it: https://guides.cocoapods.org/using/a-gemfile.html

@reststop
Copy link
Author

reststop commented May 4, 2016

So, other than the following for the gemfile, do I need to specify other gems?

source 'https://rubygems.org'

gem 'cocoapods'
gem "cocoapods-keys"

Actually the real question is how will that resolve the io-console issue. There is no longer any 0.4.3 version. And it seems that cocoapods-keys is asking for that version. (unless I'm mistaken)

@orta
Copy link
Owner

orta commented May 4, 2016

Oh, this is a CocoaPods Mac App issue, please take it over to there 👍

@orta
Copy link
Owner

orta commented May 4, 2016

but otherwise, that would fix it by using bundler's system version of io-console I think

@reststop
Copy link
Author

reststop commented May 4, 2016

I'm trying it out... however, just so I don't muck things up worse... what is the correct order or correct way to get cocoapods-keys 'known' by cocoapods as an active plugin?

Obviously, just the gem install of cocoapods-keys (or the bundler equivalent) is not enough.
Am I supposed to say 'pod plugins install cocoapods-keys' or '...keys'

The help on what the syntax of cocoapods plugins management is just 'pod plugins [command]', not as useful as I'd like.

Thanks! If this also fails, I'll add it as an issue on the cocoapods app repository.

@orta
Copy link
Owner

orta commented May 4, 2016

CocoaPods will look inside all known gems in its environment at runtime for ones that are prefixed cocoapods, then check if they're defined in the Podfile, they will then be applied to your project.

The commands pod plugin install only exists in the mac app, but the crux is this should not fail:

jet:Buildasaur carl$ pod plugins install keys
Installing plugins: keys
[!] /Users/carl/Applications/CocoaPods.app/Contents/Resources/bundle/bin/gem install --no-document --env-shebang --file /var/folders/4l/snyzdyts5m9gb5zyz052rq780000gn/T/cocoapods-plugins-install-keys20160504-49536-1o8vbug

ERROR: While executing gem ... (Gem::UnsatisfiableDependencyError)
Unable to resolve dependency: user requested 'io-console (= 0.4.3)'

We've had problems before with this version 0.4.3 coming through on an install before but it seems to have re-appeared, are you using CP.app 1.0?

@reststop
Copy link
Author

reststop commented May 4, 2016

This is supposed to be easy.... can't get bundler (at least the latest version) installed:

Ok, Sorry, My Misunderstanding and typing too fast...

bundler installed fine. It was when i typed bundle install that it failed...

An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that gem install json -v '1.8.3' succeeds before bundling.

jet:Buildasaur carl$ sudo gem install json:1.8.3
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
In file included from ./../fbuffer/fbuffer.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
^
1 error generated.
make: *** [generator.o] Error 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.3 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/json-1.8.3/ext/json/ext/generator/gem_make.out

Does all this require the latest OS X (10.11) and Xcode 7.3 ??

I had trouble on my work machine running 10.11/7.3 so I'm trying it on my person machine which is still using 10.10/7.2 at the moment. Will upgrade if I need to, but was hoping not to do that in the middle of a sprint. ;-)

I'm doing this on the command line... I will try it in the app to see if it makes any difference.

pod --version
1.0.0.rc.1

@reststop
Copy link
Author

reststop commented May 4, 2016

Ok, probably not your (cocoapods-keys) issue and probably a cocoapods.app issue for this one.

Even with the plugin installed, it still complains:

[!] Your Podfile requires that the plugin cocoapods-keys be installed. Please install it and try installation again.

In the App, when I opened the Podfile in question, it gave me a nice window indicating that a plugin was required for this Podfile, and I selected "Install".

When it was complete, I Then selected "Install" from the drop-down menu, (I presume 'pod install') and it gave me the same error again.

[!] Your Podfile requires that the plugin cocoapods-keys be installed. Please install it and try installation again.

Clearly the app (and it's associated command line tools) don't know the plug-in is there.

pod plugins

display the plugin just fine as installed, but 'pod install' still gives the error

-> CocoaPods Keys
Store sensitive data in your Mac's keychain, that will be installed into your app's source code via the Pods library.
- Gem: cocoapods-keys
- URL: https://github.com/orta/cocoapods-keys

I will add that as an issue on the cocoapods.app page.

@reststop
Copy link
Author

reststop commented May 4, 2016

Ok, on one of my 2 systems I got bundler installed and got past the 'bundle install' issue.
However, same issue.

% bundle exec pod plugins install keys
Installing plugins: keys
[!] /Users/cabaltru/Downloads/CocoaPods.app/Contents/Resources/bundle/bin/gem install --no-document --env-shebang --file /var/folders/jz/7j0bm3g91rl25nmm51dswpg40000gq/T/cocoapods-plugins-install-keys20160504-10636-4n2rsc

ERROR: While executing gem ... (Gem::UnsatisfiableDependencyError)
Unable to resolve dependency: user requested 'io-console (= 0.4.3)'

CocoaPods/CocoaPods-app#310

@reststop reststop closed this as completed May 4, 2016
@reststop reststop reopened this May 4, 2016
@abbeycode
Copy link
Contributor

Did you ever get past this? I'm seeing the same issue now.

@reststop
Copy link
Author

On one of my systems I finally got past it using beta version 5, but I
tried installing on a new server about a week ago,nd have been unable to
remember how I got past it, and am still stuck.

On Thu, Jun 16, 2016 at 8:42 PM, Dov Frankel [email protected]
wrote:

Did you ever get past this? I'm seeing the same issue now.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#135 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AARgKdPBqi9hUjlwwEwlCfQxNfvD-E0Eks5qMhefgaJpZM4IW5lh
.

@MindaugasJucius
Copy link

Facing the same problem, any updates?

@loudmouth
Copy link

Has any solution been found? I'm also facing the same issue.

@loudmouth
Copy link

loudmouth commented Dec 8, 2016

@reststop @abbeycode just in case it may help, see my comment on issue 147. Good luck.

@jakubprogramming
Copy link

Is there still no solution to this Problem?

I am experiencing exactly the same.

@brunomunizaf
Copy link

I solved it by adding gem 'cocoapods-keys' to the gemfile. Not sure it will work for anyone else but... 🤷

@yutaoming
Copy link

yutaoming commented Dec 8, 2021

I solved it by adding gem 'cocoapods-keys' to the gemfile. Not sure it will work for anyone else but... 🤷

It works for me.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants