After osx is upgraded to 10.10, use pod install to report an error. osx10.10

Source: Internet
Author: User
Tags install cocoapods

After osx is upgraded to 10.10, use pod install to report an error. osx10.10

Let's take a look at the solution on the Internet as follows:

First according to this article: http://blog.csdn.net/dqjyong/article/details/37958067

The procedure is as follows:

  1. Open Xcode 6
  2. Open Preferences
  3. ClickLocationsTab
  4. ChangeCommand Line ToolsVersionXcode 6.0
  5. Uninstallcocoapods
    A.$ sudo gem uninstall cocoapods
  6. Installxcodeproj
    A.$ sudo gem install xcodeproj
  7. Installcocoapods
    A.$ sudo gem install cocoapods
  8. Runpod --versionTo verify that it worked
If you execute Step 7: sudo gem install xcodeproj successfully, but to Step 7: $ sudo gem install cocoapodsThe error message is as follows:

ERROR:  Could not find a valid gem 'cocoapods' (>= 0), here is why:          Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://rubygems.org/latest_specs.4.8.gz)ERROR:  Possible alternatives: cocoapods

Consciousness means that we cannot find the source we need in the official source. What should we do now? Find a blog online and switch the official source, that is, change the source retrieval address.

In this case, we need to change the gem source. For details, refer to [4] and [5]. Run the following command on the terminal:

$ gem sources -l
$ gem sources --remove https://rubygems.org/
$ gem sources -a https://ruby.taobao.org/ 
$ gem sources -l
Run the following command:

$ Pod setup

This processWillLikely take a while as this command clones the CocoaPods Specs repository

Into ~ /. Cocoapods/on your computer. [6]

So far, CocoaPods has been installed.

Note:If the "$ pod setup" command is missing, directly execute "$ pod init"

There will be an error similar to the following:

"$ Pod init

Setting up CocoaPods master repo

[!] /Usr/bin/git clone 'https: // github.com/CocoaPods/Specs.git' master -- depth = 1

 

Cloning into 'master '...

 

Error: RPC failed; result = 52, HTTP code = 0

 

Fatal: The remote end hung up unexpectedly

 

/Library/Ruby/Gems/2.0.0/gems/claide-0.6.1/lib/claide/command. rb: 304: in 'handle _ exception': undefined method 'verbose? 'For nil: NilClass (NoMethodError)

From/Library/Ruby/Gems/2.0.0/gems/claide-0.6.1/lib/claide/command. rb: 284: in 'rescue in run'

From/Library/Ruby/Gems/2.0.0/gems/claide-0.6.1/lib/claide/command. rb: 274: in 'run'

From/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods/command. rb: 48: in 'run'

From/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/bin/pod: 33: in '<top (required)>'

From/usr/bin/pod: 23: in 'load'

From/usr/bin/pod: 23: in '<main> '"


After completing the preceding steps, perform the following operations:$ sudo gem install cocoapods

At this point, it is successful!

The rest is in the same project directory as before, create Podfile, execute pod install, open xworkspace, etc !!!


Reference: http://www.cnblogs.com/cwgk/p/3370949.html

Http://blog.csdn.net/dqjyong/article/details/37958067

Http://stackoverflow.com/questions/24018355/cocoapods-with-xcode-6-and-10-10-yosemite

These are some of the methods used on the Internet.

Let's talk about my own method. In fact, this is because xocde has upgraded to 6.1 and has not downloaded the corresponding command_line_tools tool. You only need to download command_line_tools_for_osx_10.10_for_xcode_6.1.dmg from the official website.

Before using pod install, no problems will occur.

But you will be prompted to upgrade cocoapods,


You can upgrade it. This does not affect your use.

Upgrade Method:

Sudo gem install cocoapods


After the Mac is upgraded to OSX1010, The PPPDial dial cannot be used. The dialing always prompts initialization error 2.

On the network settings page, click + in the lower-right corner to add a network, and then select PPPoE in the Interface option.

In Linux Ubuntu 1010, the sound icon is missing.

"The volume icon is missing/the sound icon is missing/There is no small speaker. The reason is:
Check items related to sound attribute settings first. Exceptions may occur in the following locations.
Some items may be found in the control panel, multimedia, sound, and audio devices that cannot be modified.
Check the device (Control Panel> system> Device Manager)
A device with a yellow question mark may be found.
In addition, viruses and Trojans damage sound card-related components.

The volume icon is missing/the sound icon is missing/There is no small speaker solution:
1. First, eliminate the impact of viruses. When components related to the sound card driver are damaged by viruses, the computer may not be able to sound, log on to the game and report an error, or the sound icon in the system tray area in the lower right corner is gone.
Use Kingsoft Antivirus 2011 latest version for quick detection and removal. you can locate the problem within 3-5 minutes.
2. Try to reinstall the Sound Card Driver
Currently, most sound cards are integrated with the motherboard, and the sound card driver is also integrated with the motherboard drive disc. Follow the prompts to complete the operation.
3. Check whether the windows audio Service is normal.
Run services. msc, open the Service Manager, and find the windows audio Service. If it is not started, double-click to modify its attribute to automatic, and then click the start button. "
Follow my steps to solve the problem.

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.