iOS development--/system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby:bad Interpreter:no such file

Source: Internet
Author: User

For some time did not use Pod, suddenly reported a mistake, checked the next, the original is not updated pod,

1, update gem:sudo gem update--system

2. See if the gem source is up to date: Gem Sources-l

3, upgrade Cocoapods:sudo gem install-n/usr/local/bin cocoapods--pre

4. View the upgraded Cocoapods version: Pod--version

I was directly updated under, and then can be used, as for the use of no replacement mirror, this I have not tried, the above steps have solved my problem, pro-test effective!

I have also listed the other steps:

1. Update Gem:sudo gem update--system

2. Delete Gem Source: Gem Sources--remove https://ruby.taobao.org/

3. Change gem Source: Gem Sources-a https://gems.ruby-china.org

4. See if the gem source is up to date: Gem sources-l

5. Upgrade Cocoapods:sudo gem Install-n/usr/local/bin cocoapods--pre

6. View the upgraded Cocoapods version: Pod--version

iOS development--/system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby:bad Interpreter:no such file

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.