美文网首页
疑似误删资源库-Developer中文件导致的cocoaPods

疑似误删资源库-Developer中文件导致的cocoaPods

作者: 本帅不良 | 来源:发表于2018-07-01 15:03 被阅读10次

    1、gem sources --add https://gems.ruby-china.com/

    出现

     ERROR: While executing gem ... (Gem::Exception) Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

    当:pod install

    解决:重装rvm

    借鉴:https://stackoverflow.com/questions/37336573/unable-to-require-openssl-install-openssl-and-rebuild-ruby-preferred-or-use-n

    2、rvm reinstall 2.3.0 --with-openssl-dir=/usr/local/opt/openssl

    出现错误

    /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)

    from /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/rubygems.rb:298:in `activate_bin_path'

    from /usr/local/bin/pod:22:in `main'原因:卸载cocoapods,并没有安装

    3、将“podfile”、“podfile.lock”、“Pods”、“XXX.xcworkspace”以及“XXX.xcodeproj”包文件“project.xcworkspace”删除,重新pod install之后,工程编译出现报错:no such file or directory: '/Users/pengzhiyao/Desktop/WorkerBee/Pods/XXX'

    解决:sudo pod install

    借鉴:https://www.cnblogs.com/chuange-Strongload/p/5891903.html

    相关文章

      网友评论

          本文标题:疑似误删资源库-Developer中文件导致的cocoaPods

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