OS X third-party class library management tools cocoapods, oscocoapods
I. Introduction
What is cocoapods? -- Is the next third-party class library management tool for OS X and iOS. With cocoapods, you can add a "Pods" dependency library for the project and manage its version.
Cocoapods benefits:
(1) third-party dependent libraries can be easily introduced to automatically complete various configurations: the compilation phase, connector options, and so on.
(2) search for new and standard third-party libraries.
Ii. Installation Steps
Upgrade Ruby: sudo gem update-system
Update Ruby image: gem sources-remove
Set a new image: gem sources-a XXX
View image: gem sources-l
Install cocoapods: gem install cocoapods
Cocoapods configuration update: pod setup -- Cocoapods is downloading its information ~ /. Cocoapods, so the whole process will be slow
3. Use cocoadpods
Class Library search: pod search xxx
Project use: Podfile -- define all third-party dependent Libraries
Download dependency Library: pod install
General sequence: pod update> pod install
Key: Open the. xcworkspace file directly after execution.