IOS (vii) Online ordering system One: initial construction of the project

Source: Internet
Author: User

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

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.