In the search for work at the same time to practice the project, after several projects, more than the original understand a lot of things, haha, want to add a third-party framework, a one added, and now all with cocoa pods, indeed convenient
Let's talk about cocoa pods this time.
1,What is cocoa pods?
When we develop iOS, always need a third-party framework, but where we go to find, but also to ensure that there is no outdated, Baidu obviously can not meet, even if found, may be the ancient version, a lot of features do not meet, some people may go to GitHub to find, but a find also very troublesome Ah, This time cocoa pods can come in handy, he is a special third-party framework, just need to write the corresponding third-party framework in the file. He will help us to download or update
2, How to download and Android cocoa pods?
First check if Ruby environment Gem Sources-l is installed, General Xcode has been installed for us, so we just need to install cocoa pods, in the terminal input
sudo gem install Cocoapods
However, due to the wall, we can only remove the download path, and then replace the Taobao
Gem Sources--remove https://rubygems.org/
Gem Sources-a http://ruby.taobao.org/
Then re-enter the sudo gem install Cocoapods
3, how to use cocoa pods?
Enter the CD in the terminal and drag the project file into the terminal, press the backhaul, then enter
Pod Init
Pod Install
When we reopen the project file, we will find a few more files, Xcworkspace is the new path we generated,
After opening this file, find a podfile file and write the third-party frame you need.
IOS (vii) Online ordering system One: initial construction of the project