Pod install displaying error in cocoapods version 1.0.0.beta.1

后端 未结 12 1065
傲寒
傲寒 2020-12-07 10:03

My podfile was working but after updating to cocoapods version 1.0.0.beta.1

pod install displays following error

MacBook-Pro:iOS-TuneIn home$ pod ins         


        
12条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 10:24

    My podfile was formatted correctly, so the answer did not work for me. What I had to do was all of the following: First,

    1. gem uninstall cocoapods
    2. rvm get stable --auto-dotfiles
    3. rvm use ruby-2.1.2
    4. rvm osx-ssl-certs update all
    5. rvm rubygems latest
    6. sudo gem sources -r https://rubygems.org/
    7. sudo gem sources -a http://rubygems.org/
    8. gem install cocoapods -v 1.0.0.beta.1 --pre -V

    I had SSL errors, timeout errors, and path errors. This fixed all of these. I am adding this answer in hopes that it will help someone - most people with this issue will NOT need to go through all of these steps, and should not do so if it is not neccesary. Keep in mind, that this is changing the d/l link to not use https, so be sure to change it back once you have resolved this issue. This, this, and this Stack Overflow question helped me finally resolve these issues.

提交回复
热议问题