Download and install cocoaPods, download and install cocoaPods

Source: Internet
Author: User
Tags install cocoapods

Download and install cocoaPods, download and install cocoaPods

CocoaPods management for some third-party libraries in ios. Easy to manage third-party Libraries

Briefly describe the installation steps

1. sudo gem install cocoapods
2, gem sources -- remove https://rubygems.org/(in the middle, so do not follow the Three)
3. gem sources-a https://ruby.taobao.org/
4. gem sources-l (if you print ******** Current sources ***** https://ruby.taobao.org/, the command is successfully executed

Start Installation

5. sudo gem install cocoapods (you will be prompted to enter the password but the cursor will not move)

(Wait for a while)

6. cd to your project directory

7. touch Podfile (create Podfile)

8. vim Podfile (edit command) press I (start editing)

Input:

Platform: ios, '7. 0'
Pod 'xxx', '~> 0.1.1'

9. esc shift: Exit wq

10. pod install

 

Ps: VKVideoPlayer demo may have problems, most of which are due to configuration problems in the Podfile file.

This is changed. For more information, see

Platform: ios, '5. 1.1'
Pod 'dtcoretext', '~> 1.6.11'
Pod 'afnetworking', '1. 123'
Pod "VKVideoPlayer", "~> 0.1.1"
Pod 'cocoalumberjack', '~> 1.7.0'
Pod 'vk', '0. 1.1'
Pod 'cocoahttpserver'

Target 'vkvideoplayertests' do
Pod 'specta ',' ~> 0.2.1'
Pod 'expecta ',' ~> 0.3.0'
Pod 'ocmock ',' ~> 2.2.1'
Pod "VKVideoPlayer", "~> 0.1.1"
Pod 'cocoahttpserver'
End

# Remove 64-bit build architecture from Pods targets
Post_install do | installer |
Installer.pods_project.tar gets. each do | target |
Target. build_configurations.each do | configuration |
Target. build_settings (configuration. name) ['archs'] = '$ (ARCHS_STANDARD_32_BIT )'
End
End
End

 

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.