Your Podfile requires that the p
想看个开源库,里面要求用cocoapods-keys,就照着上面的提示
sudo gem install cocoapods cocoapods-keys
但报错,提示权限不足。。。
Permission denied
或者一堆其它的。
Your Podfile requires that the plugin \
cocoapods-keys
google了10多分钟之后,综合了一下答案如下:
chown -R $(whoami) ~/.gem
gem install cocoapods-keys --user-install
这cocoapods-keys是什么东东?
A key value store for enviroment and application keys.
Its good security practice to keep production keys out of developer hands. CocoaPods-keys makes it easy to have per-user config settings stored securely in the developer's keychain, and not in the application source. It is a plugin that once installed will run on every pod install or pod update
我遇到的问题:
[!]Your Podfile requires that the plugin `cocoapods-static-swift-framework` be installed. Please install it and try installation again.
我的解决:(参考了上面的文章)
chown -R $(whoami) ~/.gem
gem install cocoapods-static-swift-framework --user-install
然后有出现了问题路径不对 (我同事没问题我出现了我搞了好久,升级了ruby等等都没用,最后怎么好的自己都不清楚,我发出来希望大家指出)
WARNING: You don't have /User/XXX/.gem/ruby/2.4.0/bin in your PATH, gem executables will not run.
用一下两个中的一个我也不记得了,希望大家指出
PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"
或
export PATH="/User/XXX/.gem/ruby/1.9.1/bin:$PATH"
下面个2个参考链接:
WARNING: You don't have <a directory> in your PATH, gem executables will not run
Just installed Sass on OSX - What is this? > WARNING: You don't have /Users/Orion/.gem/ruby/1.8/bin in your PATH, gem executables will not run