美文网首页
八、 Cocoapods 常见问题汇总

八、 Cocoapods 常见问题汇总

作者: 张科_Zack | 来源:发表于2022-05-31 15:34 被阅读0次

    一、不能加载 slather

    警告情况如下:

    Error loading the plugin `slather-2.4.7`.
    
    Gem::ConflictError - Unable to activate slather-2.4.7, because activesupport-6.1.4.1 conflicts with activesupport (>= 4.0.2, < 5)
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:2302:in `raise_if_conflicts'
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1418:in `activate'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:93:in `safe_activate_and_require'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:31:in `block in load_plugins'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:30:in `map'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:30:in `load_plugins'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:326:in `block in run'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:325:in `each'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:325:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
    /Users/zack/.gem/bin/pod:23:in `load'
    /Users/zack/.gem/bin/pod:23:in `<main>'
    ---------------------------------------------
    

    解决方法使用 gem 安装 slather, 没设置 gem 到用户目录的请用 sudo运行以下命令:

    gem install slather
    

    相关文章

      网友评论

          本文标题:八、 Cocoapods 常见问题汇总

          本文链接:https://www.haomeiwen.com/subject/fpadnltx.html