无法在Xcode Project中初始化Pod

时间:2019-01-25 16:22:08

标签: ios ruby xcode macos cocoapods

有人可以帮助我解决这个问题吗?

当我想在我的xcode项目中初始化Pod时出现此错误:

/Library/Ruby/Site/2.3.0/rubygems.rb:242:in `activate': can't activate activesupport (>= 4.0.2, < 5, runtime) for ["cocoapods-1.5.3"], 

already activated activesupport-5.2.2 for ["cocoapods-core-1.5.3", "cocoapods-1.5.3"] (Gem::LoadError)

    from /Library/Ruby/Site/2.3.0/rubygems.rb:258:in `block in activate'
    from /Library/Ruby/Site/2.3.0/rubygems.rb:257:in `each'
    from /Library/Ruby/Site/2.3.0/rubygems.rb:257:in `activate'
    from /Library/Ruby/Site/2.3.0/rubygems.rb:1146:in `gem'

1 个答案:

答案 0 :(得分:0)

尝试卸载gem activesupport。这可能有帮助

gem uninstall activesupport