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