iOS installation cocoapods complete process

Source: Internet
Author: User

as a bottom system big rookie, and after a few years of iOS, install a cocoapods is an egg pain-said understand and understand, say do not understand and do not understand.


Because the installation process is more complex, more steps, and the online tutorial is relatively fragmented, and some are torn eggs, so this article mainly from the beginning in place according to their own installation experience record each terminal instruction, as for the inside of the principle and some conceptual things, A blog link will be attached to the appropriate place for you to study in depth.
I have seen a lot of related tutorials, attached to the tutorials are more reliable, not reliable to say, we can go online search, a lot of ~
Okay, no more nonsense, code up!  first of all, there are a lot of things to install before installing Cocoapods, the specific process is this, xcode-homebrew-rvm-rudy-cocoapods.    One, Xcode I will not say, the iOS programmer eats the guy, the reason why you need to install this may be Xcode helps the Mac install some of the installation packages for the UNIX environment.   Second, Homebrew.     This is what I looked for in the online tutorial: http://jingyan.baidu.com/article/a3a3f8118d714b8da2eb8a95.html.
first open the terminal Run command as follows:   1. ruby-e "$ (curl-fssl https://raw.github.com/Homebrew/homebrew/go/install)"
the results are as follows:
can see the command 1 after the input is basically unsuccessful, since the unsuccessful why to say it ~ because the command installation of the homebrew address will change, after entering the command 1, a large paragraph of English, probably means that you re-run the following instructions. That is the red box below.so I ran command 2 as required. 2.ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
Note: The instruction 1 input is mainly obtained the correct instruction 2, so instruction 1 is unchanged and basically installation is not successful, it is to get instruction 2, instruction 2 can be understood as variable.
the results are as follows:   The first red box is the command 2, the second red box is the installation of the time to tell you what to install, just press a button to continue to install ~ Red Box 3 is to enter your computer password to indicate authorization, the terminal below all the password input is not visible, just enter the line by pressing ENTER. In this case homebrew installed successfully, there are also tips for you to run Brew help to view homebrew tutorial.   Third, RVM
a reliable tutorial: Https://ruby-china.org/wiki/install_ruby_guide.  First, enter the following command: 3.curl-l Https://get.rvm.io | bash-s stable    the results are as follows:
Install the time to wait a little, because to download something, see there is a could not download, I was scared to pee, thought the installation is not successful ~ is tangled in the time and on the Internet to check some information, there is an article on various can check whether the installation of successful instructions,  Article Link: http://blog.sina.com.cn/s/blog_67e482b30101kcht.html. I follow the above instruction input, sure enough, RVM has been installed successfully, hurriedly smoke pressure yajing ~
Iv. Rudy
Tutorial: Https://ruby-china.org/wiki/install_ruby_guideEnter the following command 4.Install 2.0.0 The results are as follows:after installation, you can run Rudy-v view version
Five, Cocoapods.
Tutorial: Http://code4app.com/article/cocoapods-install-usage. because this tutorial is particularly detailed, so here is not too much to say. This tutorial is very good writing, the main thing is not to say Rudy How to install, the basic installation of Rudy Environment, installation Cocoapods is very simple. Here you can refer to this tutorial, I see this tutorial to Cocoapods installation success, mainly using the following instructions. 5. gem sources--remove https://rubygems.org/ 6. gem sources-a http://ruby.taobao.org/ 7. sudo gem install cocoapods
application of Cocoapods in SVN:In order to avoid the problem of class library version conflict in SVN, generally we just need to upload a podfile file, then after installing Cocoapods, we go to the folder where the Podfile file is located, run pod install or pod update You can generate the workspace file.

iOS installation cocoapods complete process

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.