objective-c - [cocoapods] 安装cocoapods 后执行pod 命令报如下错误,求助!!!

【字号: 日期:2023-12-12浏览:31作者:雯心

问题描述

/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require’: cannot load such file -- claide (LoadError) from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj.rb:3:in `<module:Xcodeproj>’ from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.28.2/lib/xcodeproj.rb:1:in `<top (required)>’ from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods.rb:2:in `<top (required)>’ from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require’ from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/bin/pod:25:in `<top (required)>’ from /usr/local/bin/pod:23:in `load’ from /usr/local/bin/pod:23:in `<main>’

问题解答

回答1:

sudo gem install -n /usr/local/bin cocoapods

update cocoapods

相关文章: