Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CocoaPods 5 minute introduction

CocoaPods 5 minute introduction

Quick introduction to CocoaPods, given at the OpenSourceBash Berlin 2015.

Boris Bügling

September 28, 2015
Tweet

More Decks by Boris Bügling

Other Decks in Programming

Transcript

  1. but also • Declarative language for libraries • Transitive dependencies

    • Discovery of new libraries • Plugin system
  2. podspec Pod::Spec.new do |s| s.name = "Contentful" s.version = "0.1.0"

    s.summary = "Swift SDK for Contentful's Content Delivery API." s.homepage = "https://github.com/contentful/contentful.swift/" s.social_media_url = 'https://twitter.com/contentful' s.license = { :type => 'MIT', :file => 'LICENSE' } s.authors = { "Boris Bügling" => "[email protected]" } s.source = { :git => "https://github.com/contentful/contentful.swift.git", :tag => s.version.to_s } s.requires_arc = true s.source_files = 'Code/*.swift' s.ios.deployment_target = '9.0' s.osx.deployment_target = '10.11' s.dependency 'Interstellar', '~> 1.1.0' end
  3. $ pod install Analyzing dependencies Downloading dependencies Using Interstellar (1.1.0)

    Using Nimble (2.0.0-rc.3) Using Quick (0.6.0) Generating Pods project Integrating client project Sending stats