在生成pod模板库是发现一个错误导致模板库生成错误:
.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require’: cannot load such file – colored2 (LoadError)
输入上面提示的colored2的两条gem命令即可解决问题
$ sudo gem install colored2
中间会提示输入密码
$ sudo gem update –system
完成后继续执行自己的命令
$ pod lib create XXXlib
RubyGems system software updated
likexue的Mac-Pro:SelectArea likexue$ pod lib create KXSelectArea
Cloning https://github.com/CocoaPods/pod-template.git
into KXSelectArea
.
Configuring KXSelectArea template.
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
! Before you can create a new library we need to setup your git credentials.
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
What is your name?
likexue
! Setting your name in