CocoaPods.org | Latest TMZ Celebrity News & Gossip | Watch TMZ Live

CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

      What is CocoaPods

      CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 104 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 use sudo when installing gems. Further installation instructions are in the guides.

      $ sudo gem install cocoapods
      

      Search 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'
      end
      

      Tip: 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 install
      

      Make sure to always open the Xcode workspace instead of the project file when building 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 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.

      TMZ Celebrity News – Breaking Stories, Videos & Gossip

      Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

      Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

      🎥 Watch TMZ Live

      TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.