CocoaPods
Có thể bạn quan tâm
- About
- Guides
- Blog
CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
* Type here to search by name, author and summary.
AnyiOSmacOSwatchOStvOSAllSwiftObj-CSort by:Quality- Quality
- Popularity
- A-Z
- Contributors
- Forks
- Stars
- Watchers
What is CocoaPods
CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 106 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly.
- Install
- Get Started
- Create a Pod
CocoaPods is built with Ruby and is installable with the default Ruby available on macOS. We recommend you use the default ruby.
Using the default Ruby install can require you to use sudo when installing gems. Further installation instructions are in the guides.
$ sudo gem install cocoapodsSearch for pods (above). Then list the dependencies in a text file named Podfile in your Xcode project directory:
platform :ios, '8.0' use_frameworks! target 'MyApp' do pod 'AFNetworking', '~> 2.6' pod 'ORStackView', '~> 3.0' pod 'SwiftyJSON', '~> 2.3' endTip: CocoaPods provides a pod init command to create a Podfile with smart defaults. You should use it.
Now you can install the dependencies in your project:
$ pod installMake sure to always open the Xcode workspace instead of the project file when building your project:
$ open App.xcworkspaceNow you can import your dependencies e.g.:
#import <Reachability/Reachability.h>Sometimes CocoaPods doesn’t yet have a pod for one of your dependencies. Fortunately, creating a pod is pretty easy: $ pod spec create Peanut $ edit Peanut.podspec $ pod spec lint Peanut.podspec
You can find a lot of information on the process in the guides. When you're done you can get an account and push your pod to the CocoaPods Trunk.
Contribute
We’re developing CocoaPods on GitHub. There’s a guide for getting started on the CocoaPods tool. It’s easy and really gratifying to contribute patches! - for a lot of people it's their first foray into Open Source. We have some easy tickets to look at.
Từ khóa » đấy Usage
-
USAGE | Định Nghĩa Trong Từ điển Tiếng Anh Cambridge
-
Usage - Wiktionary Tiếng Việt
-
Usage Hay đấy Flashcards
-
Cách để Giữ MEMORY USAGE LOW Trong Ruby - Viblo
-
How To Adjust Memory Usage By Using Configuration Options In SQL ...
-
Pt-index-usage - Percona
-
Can I Use... Support Tables For HTML5, CSS3, Etc
-
Documentation: 14: 20.4. Resource Consumption - PostgreSQL
-
Oxford Learner's Dictionaries | Find Definitions, Translations, And ...
-
User Privacy And Data Use - App Store - Apple Developer