Install pop animation engine in Xcode7.3.1 with the latest cocoapod

Source: Internet
Author: User
Tags install cocoapods

Cocoapod is a manager that is implemented in Ruby to facilitate the management of third-party plugins in Xcode. With it we can easily install and upgrade the plugin without worrying about destroying the original project.

Pop is an engine for animating apps, which is open source by Facebook, if the cat is not mistaken;]

Here's a quick chat on how to install pop in the latest Xcode

First you have to install Ruby on your Mac, whether you use RVM or build it yourself from source code.

Then open the terminal and enter the following command:

sudo gem install cocoapods

Played Ruby all know that this is the gem installed through Ruby

Depending on the number of gems that your system has installed, it will finally show

x gems installed

Then the installation is complete cocoapod.

Then use Xcode to open the project you need to inherit the pop engine, and then use the Ios\other\empty template to create a new file named Podfile, in fact, it is a normal text document. Open the file to enter the following content:

‘PopSoccer‘do    ‘pop‘,‘~>1.0‘end

Note that the original text does not need to write the target block, but the latest cocoapod will be the old writing errors, error content as follows:

[!] The dependency `pop (~> 1.0)isnotin any concrete target.

So we have to write a target block to include the actual dependencies.

Note that dependent version of the syntax, we only need the latest 1.0.x version, but do not need 1.1 or higher version! This is because the 1.x later version may have a larger change from the 1.0.x version, so we chose the 1.0.x version.

But if you don't care about it, just want to use the latest pop version, then you're completely indifferent.

Save your Podfile, completely close Xcode, and from the console go to the folder where you just added the Podfile project, run the following command:

install

The first run will be slow and prompt as follows:

Setting up CocoaPods master repo

The following will appear (on my Mac):

Analyzing dependenciesDownloading dependenciesInstalling pop (1.0.9andforfromon.is1fromtheand1 totalpod installed.

Ok! Note that you will be prompted to open the project in the future through Popsoccer.xcworkspace, not the original project files, this is important to remember!

Open the project from Xcode and you'll find that the project space includes the original project and a new Pods project, open the Pods project, and you'll find the POP engine you just installed in the Pods directory.

Install pop animation engine in Xcode7.3.1 with the latest cocoapod

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.