Movatterモバイル変換


[0]ホーム

URL:


CocoaPods trunk is moving to be read-only. Read more on theblog, there are 14 months to go.

* Type here to search by name, author and summary.

results.

    1. load more
      Sorry. No pods found.
      Some suggestions:Make sure that all words are spelled correctly.Try different keywords.Try more general keywords.Split long words into pieces.

      What is CocoaPods

      CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 105 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly.

      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 usesudo when installinggems. Further installation instructions are inthe guides.

      $ sudo gem install cocoapods

      Search for pods (above). Then list the dependencies in a text file namedPodfile 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'end

      Tip: CocoaPods provides apod init command to create a Podfile withsmart defaults. You should use it.

      Now you can install the dependencies in your project:

      $ pod install

      Make sure to always open the Xcode workspace instead of the project file whenbuilding your project:

      $ open App.xcworkspace

      Now 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 theprocess in the guides. When you're done you can get an account and push yourpod to the CocoaPods Trunk.

      Contribute

      We’re developing CocoaPods on GitHub. There’s a guide forgetting 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 someeasy tickets to look at.


      [8]ページ先頭

      ©2009-2025 Movatter.jp