SlideShare ist ein Scribd-Unternehmen logo
1 von 9
CooCoo
   For
CocoaPods
What are CocoaPods
●   Library dependency management system for
    Objective C Applications
●   Ruby Based
●   Uses spec files to tell what code to download
    and use
Installing pods
●   sudo gem install cocoapods
●   pod setup
Create Podfile
●   vim Podfile          platform :ios
                         pod 'RestKit', '0.10.3'
                         target :test do
                          link_with 'AppnameTests'
                          pod 'Kiwi', '1.1.0'
                         end
Run the Install
●   pod install
●   Open the Workspace created
    –   open appName.xcworkspace
●   Compile the project
Creating a Spec
●   pod spec create <name or git url>
●   Edit spec file
●   pod spec lint <name of spec file>
●   Copy spec to
    ~/.cocoapods/master/<AppName>/<versionNo>
●   Fork github.com/cocoapods/specs and add
    folder as you did on the last step
●   Submit a pull request
Original UrbanAirship Spec
Pod::Spec.new do |s|
 s.name          = 'UrbanAirship-iOS-SDK'
 s.version       = '1.3.3'
 s.license      = 'BSD'
 s.platform      = :ios


 s.summary         = 'A simple way to integrate Urban Airship services into your iOS applications.'
 s.homepage         = 'https://github.com/urbanairship/ios-library'
 s.author       = { 'Urban Airship' => 'support@urbanairship.com' }
 s.source        = { :git => 'https://github.com/urbanairship/ios-library.git', :tag => 'v1.3.3' }


 # Airship ships both UA-prefixed ASI and SBJson, as well as un-prefixed
 # versions that are no longer used in the .xcodeproj.
 files = FileList['Airship/**/*.{h,m,c}']
 files.exclude(//asi-http-request//)
 files.exclude(//json-framework//)
 files.exclude(//google-toolbox-for-mac//)
 s.source_files = files


 s.libraries    = 'z', 'sqlite3.0'
 s.frameworks = 'CFNetwork', 'CoreGraphics', 'Foundation', 'MobileCoreServices',
               'Security', 'SystemConfiguration', 'UIKit', 'CoreTelephony',
               'StoreKit', 'CoreLocation'
end
Modified UrbanAirship Spec
Pod::Spec.new do |s|
 s.name          = 'UrbanAirship-iOS-SDK'
 s.version       = '1.3.3.1'
 s.license      = 'BSD'
 s.platform      = :ios


 s.summary         = 'A simple way to integrate Urban Airship services into your iOS applications.'
 s.homepage         = 'https://github.com/urbanairship/ios-library'
 s.author       = { 'Urban Airship' => 'support@urbanairship.com' }
 s.source        = { :git => 'https://github.com/urbanairship/ios-library.git', :tag => 'v1.3.3' }


 # Airship ships both UA-prefixed ASI and SBJson, as well as un-prefixed
 # versions that are no longer used in the .xcodeproj.
 files = FileList['Airship/**/*.{h,m,c}']
 files = files.exclude(//asi-http-request//)
 files = files.exclude(//json-framework//)
 files = files.exclude(//google-toolbox-for-mac//)
 files = files.exclude(//Reachability.*/)
 files = files.exclude(/miniunz.c/)
 s.source_files = files


 s.libraries    = 'z', 'sqlite3.0'
 s.frameworks = 'CFNetwork', 'CoreGraphics', 'Foundation', 'MobileCoreServices',
               'Security', 'SystemConfiguration', 'UIKit', 'CoreTelephony',
               'StoreKit', 'CoreLocation', 'MessageUI', 'MapKit'
 s.dependency 'Reachability'
end
About Me
●   Allan Davis
●   Email: cajun.code@gmail.com
●   Twitter: @cajun_code

Weitere ähnliche Inhalte

Was ist angesagt?

DockerでCKANを動かそう
DockerでCKANを動かそうDockerでCKANを動かそう
DockerでCKANを動かそうTakayuki Goto
 
Fun with containers: Use Ansible to build Docker images
Fun with containers: Use Ansible to build Docker imagesFun with containers: Use Ansible to build Docker images
Fun with containers: Use Ansible to build Docker imagesabadger1999
 
ABCing docker with environments - workshop
ABCing docker with environments - workshopABCing docker with environments - workshop
ABCing docker with environments - workshopVodqaBLR
 
Docker Compose user guide
Docker Compose user guideDocker Compose user guide
Docker Compose user guideVAIBHAV GUPTA
 
Docker consul-registrator
Docker consul-registratorDocker consul-registrator
Docker consul-registratorlaonap166
 
Docker Ecosystem: Part V - Docker Registry
Docker Ecosystem: Part V - Docker RegistryDocker Ecosystem: Part V - Docker Registry
Docker Ecosystem: Part V - Docker RegistryMario IC
 
Docker Ecosystem: Part III - Machine
Docker Ecosystem: Part III - MachineDocker Ecosystem: Part III - Machine
Docker Ecosystem: Part III - MachineMario IC
 
Using Capifony for Symfony apps deployment (updated)
Using Capifony for Symfony apps deployment (updated)Using Capifony for Symfony apps deployment (updated)
Using Capifony for Symfony apps deployment (updated)Žilvinas Kuusas
 
Making a small QA system with Docker
Making a small QA system with DockerMaking a small QA system with Docker
Making a small QA system with DockerNaoki AINOYA
 
Deis, a PaaS built with Docker, Docker Meetup Sao Paulo #3 @Wayra
Deis, a PaaS built with Docker,  Docker Meetup Sao Paulo #3 @WayraDeis, a PaaS built with Docker,  Docker Meetup Sao Paulo #3 @Wayra
Deis, a PaaS built with Docker, Docker Meetup Sao Paulo #3 @WayraLeo Lorieri
 
Docker introduction
Docker introductionDocker introduction
Docker introductioncawamata
 
Launching containers with fleet
Launching containers with fleetLaunching containers with fleet
Launching containers with fleet충섭 김
 
Deploying Symfony2 app with Ansible
Deploying Symfony2 app with AnsibleDeploying Symfony2 app with Ansible
Deploying Symfony2 app with AnsibleRoman Rodomansky
 
Docker: From Zero to Hero
Docker: From Zero to HeroDocker: From Zero to Hero
Docker: From Zero to HeroEspeo Software
 
Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Jonas Rosland
 
How Stuffle uses Docker for deployments
How Stuffle uses Docker for deploymentsHow Stuffle uses Docker for deployments
How Stuffle uses Docker for deploymentsRobinBrandt
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command linedotCloud
 

Was ist angesagt? (20)

Dockerを使おう
Dockerを使おうDockerを使おう
Dockerを使おう
 
DockerでCKANを動かそう
DockerでCKANを動かそうDockerでCKANを動かそう
DockerでCKANを動かそう
 
Fun with containers: Use Ansible to build Docker images
Fun with containers: Use Ansible to build Docker imagesFun with containers: Use Ansible to build Docker images
Fun with containers: Use Ansible to build Docker images
 
ABCing docker with environments - workshop
ABCing docker with environments - workshopABCing docker with environments - workshop
ABCing docker with environments - workshop
 
Docker Compose user guide
Docker Compose user guideDocker Compose user guide
Docker Compose user guide
 
Docker consul-registrator
Docker consul-registratorDocker consul-registrator
Docker consul-registrator
 
Docker Ecosystem: Part V - Docker Registry
Docker Ecosystem: Part V - Docker RegistryDocker Ecosystem: Part V - Docker Registry
Docker Ecosystem: Part V - Docker Registry
 
Docker Ecosystem: Part III - Machine
Docker Ecosystem: Part III - MachineDocker Ecosystem: Part III - Machine
Docker Ecosystem: Part III - Machine
 
Using Capifony for Symfony apps deployment (updated)
Using Capifony for Symfony apps deployment (updated)Using Capifony for Symfony apps deployment (updated)
Using Capifony for Symfony apps deployment (updated)
 
Making a small QA system with Docker
Making a small QA system with DockerMaking a small QA system with Docker
Making a small QA system with Docker
 
Deis, a PaaS built with Docker, Docker Meetup Sao Paulo #3 @Wayra
Deis, a PaaS built with Docker,  Docker Meetup Sao Paulo #3 @WayraDeis, a PaaS built with Docker,  Docker Meetup Sao Paulo #3 @Wayra
Deis, a PaaS built with Docker, Docker Meetup Sao Paulo #3 @Wayra
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Docker presentation
Docker presentationDocker presentation
Docker presentation
 
Launching containers with fleet
Launching containers with fleetLaunching containers with fleet
Launching containers with fleet
 
Deploying Symfony2 app with Ansible
Deploying Symfony2 app with AnsibleDeploying Symfony2 app with Ansible
Deploying Symfony2 app with Ansible
 
Docker: From Zero to Hero
Docker: From Zero to HeroDocker: From Zero to Hero
Docker: From Zero to Hero
 
Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015
 
IOS 11 setup with appium latest
IOS 11 setup with appium  latestIOS 11 setup with appium  latest
IOS 11 setup with appium latest
 
How Stuffle uses Docker for deployments
How Stuffle uses Docker for deploymentsHow Stuffle uses Docker for deployments
How Stuffle uses Docker for deployments
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command line
 

Ähnlich wie Coocoo for Cocoapods

CocoaHeads Rennes #13 : CocoaPods
CocoaHeads Rennes #13 : CocoaPodsCocoaHeads Rennes #13 : CocoaPods
CocoaHeads Rennes #13 : CocoaPodsCocoaHeadsRNS
 
Денис Лебедев-Управление зависимостями с помощью CocoaPods
Денис Лебедев-Управление зависимостями с помощью CocoaPodsДенис Лебедев-Управление зависимостями с помощью CocoaPods
Денис Лебедев-Управление зависимостями с помощью CocoaPodsUA Mobile
 
Ruby on Rails Kickstart 101 & 102
Ruby on Rails Kickstart 101 & 102Ruby on Rails Kickstart 101 & 102
Ruby on Rails Kickstart 101 & 102Heng-Yi Wu
 
Architecting .NET Applications for Docker and Container Based Deployments
Architecting .NET Applications for Docker and Container Based DeploymentsArchitecting .NET Applications for Docker and Container Based Deployments
Architecting .NET Applications for Docker and Container Based DeploymentsBen Hall
 
Docker for developers z java
Docker for developers z javaDocker for developers z java
Docker for developers z javaandrzejsydor
 
Cocoapods and Most common used library in Swift
Cocoapods and Most common used library in SwiftCocoapods and Most common used library in Swift
Cocoapods and Most common used library in SwiftWan Muzaffar Wan Hashim
 
Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript Serge van den Oever
 
Amazon Web Services and Docker: from developing to production
Amazon Web Services and Docker: from developing to productionAmazon Web Services and Docker: from developing to production
Amazon Web Services and Docker: from developing to productionPaolo latella
 
MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...
MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...
MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...MongoDB
 
Docker Container As A Service - Mix-IT 2016
Docker Container As A Service - Mix-IT 2016Docker Container As A Service - Mix-IT 2016
Docker Container As A Service - Mix-IT 2016Patrick Chanezon
 
Angularjs Tutorial for Beginners
Angularjs Tutorial for BeginnersAngularjs Tutorial for Beginners
Angularjs Tutorial for Beginnersrajkamaltibacademy
 
Building websites with Node.ACS
Building websites with Node.ACSBuilding websites with Node.ACS
Building websites with Node.ACSralcocer
 
Building websites with Node.ACS
Building websites with Node.ACSBuilding websites with Node.ACS
Building websites with Node.ACSRicardo Alcocer
 
Getting Your Hooks Into Cordova
Getting Your Hooks Into CordovaGetting Your Hooks Into Cordova
Getting Your Hooks Into CordovadevObjective
 
Getting your Hooks into Cordova
Getting your Hooks into CordovaGetting your Hooks into Cordova
Getting your Hooks into CordovaGavin Pickin
 
2018 RubyHACK: put git to work - increase the quality of your rails project...
2018 RubyHACK:  put git to work -  increase the quality of your rails project...2018 RubyHACK:  put git to work -  increase the quality of your rails project...
2018 RubyHACK: put git to work - increase the quality of your rails project...Rodrigo Urubatan
 

Ähnlich wie Coocoo for Cocoapods (20)

CocoaHeads Rennes #13 : CocoaPods
CocoaHeads Rennes #13 : CocoaPodsCocoaHeads Rennes #13 : CocoaPods
CocoaHeads Rennes #13 : CocoaPods
 
Денис Лебедев-Управление зависимостями с помощью CocoaPods
Денис Лебедев-Управление зависимостями с помощью CocoaPodsДенис Лебедев-Управление зависимостями с помощью CocoaPods
Денис Лебедев-Управление зависимостями с помощью CocoaPods
 
Ruby on Rails Kickstart 101 & 102
Ruby on Rails Kickstart 101 & 102Ruby on Rails Kickstart 101 & 102
Ruby on Rails Kickstart 101 & 102
 
Architecting .NET Applications for Docker and Container Based Deployments
Architecting .NET Applications for Docker and Container Based DeploymentsArchitecting .NET Applications for Docker and Container Based Deployments
Architecting .NET Applications for Docker and Container Based Deployments
 
CocoaPods
CocoaPodsCocoaPods
CocoaPods
 
Docker for developers z java
Docker for developers z javaDocker for developers z java
Docker for developers z java
 
Cocoapods and Most common used library in Swift
Cocoapods and Most common used library in SwiftCocoapods and Most common used library in Swift
Cocoapods and Most common used library in Swift
 
Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript
 
Amazon Web Services and Docker: from developing to production
Amazon Web Services and Docker: from developing to productionAmazon Web Services and Docker: from developing to production
Amazon Web Services and Docker: from developing to production
 
MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...
MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...
MongoDB World 2018: Tutorial - Got Dibs? Building a Real-Time Bidding App wit...
 
Docker Container As A Service - Mix-IT 2016
Docker Container As A Service - Mix-IT 2016Docker Container As A Service - Mix-IT 2016
Docker Container As A Service - Mix-IT 2016
 
Angularjs Tutorial for Beginners
Angularjs Tutorial for BeginnersAngularjs Tutorial for Beginners
Angularjs Tutorial for Beginners
 
Docker
DockerDocker
Docker
 
Building websites with Node.ACS
Building websites with Node.ACSBuilding websites with Node.ACS
Building websites with Node.ACS
 
Building websites with Node.ACS
Building websites with Node.ACSBuilding websites with Node.ACS
Building websites with Node.ACS
 
Getting Your Hooks Into Cordova
Getting Your Hooks Into CordovaGetting Your Hooks Into Cordova
Getting Your Hooks Into Cordova
 
Getting your Hooks into Cordova
Getting your Hooks into CordovaGetting your Hooks into Cordova
Getting your Hooks into Cordova
 
Getting Your Hooks into Cordova
Getting Your Hooks into CordovaGetting Your Hooks into Cordova
Getting Your Hooks into Cordova
 
CocoaPods.pptx
CocoaPods.pptxCocoaPods.pptx
CocoaPods.pptx
 
2018 RubyHACK: put git to work - increase the quality of your rails project...
2018 RubyHACK:  put git to work -  increase the quality of your rails project...2018 RubyHACK:  put git to work -  increase the quality of your rails project...
2018 RubyHACK: put git to work - increase the quality of your rails project...
 

Mehr von Allan Davis

Flutter game development
Flutter game developmentFlutter game development
Flutter game developmentAllan Davis
 
Vr unity cardboard
Vr unity cardboardVr unity cardboard
Vr unity cardboardAllan Davis
 
Continuous Integration for IOS Apps
Continuous Integration for IOS AppsContinuous Integration for IOS Apps
Continuous Integration for IOS AppsAllan Davis
 
Cross Platform Mobile Game Development
Cross Platform Mobile Game DevelopmentCross Platform Mobile Game Development
Cross Platform Mobile Game DevelopmentAllan Davis
 
Mobilecity:Android Introduction
Mobilecity:Android IntroductionMobilecity:Android Introduction
Mobilecity:Android IntroductionAllan Davis
 
MobileCity:Core Data
MobileCity:Core DataMobileCity:Core Data
MobileCity:Core DataAllan Davis
 
MobileCity: UI UX Design
MobileCity: UI UX DesignMobileCity: UI UX Design
MobileCity: UI UX DesignAllan Davis
 
MobileCity: Overview of ObjectiveC
MobileCity: Overview of ObjectiveCMobileCity: Overview of ObjectiveC
MobileCity: Overview of ObjectiveCAllan Davis
 
MobileCity:Introduction to IOS
MobileCity:Introduction to IOSMobileCity:Introduction to IOS
MobileCity:Introduction to IOSAllan Davis
 

Mehr von Allan Davis (11)

Flutter game development
Flutter game developmentFlutter game development
Flutter game development
 
Vr unity cardboard
Vr unity cardboardVr unity cardboard
Vr unity cardboard
 
Continuous Integration for IOS Apps
Continuous Integration for IOS AppsContinuous Integration for IOS Apps
Continuous Integration for IOS Apps
 
Cross Platform Mobile Game Development
Cross Platform Mobile Game DevelopmentCross Platform Mobile Game Development
Cross Platform Mobile Game Development
 
Mobilecity:Android Introduction
Mobilecity:Android IntroductionMobilecity:Android Introduction
Mobilecity:Android Introduction
 
MobileCity:Core Data
MobileCity:Core DataMobileCity:Core Data
MobileCity:Core Data
 
MobileCity: UI UX Design
MobileCity: UI UX DesignMobileCity: UI UX Design
MobileCity: UI UX Design
 
MobileCity: Overview of ObjectiveC
MobileCity: Overview of ObjectiveCMobileCity: Overview of ObjectiveC
MobileCity: Overview of ObjectiveC
 
MobileCity:Introduction to IOS
MobileCity:Introduction to IOSMobileCity:Introduction to IOS
MobileCity:Introduction to IOS
 
Generators
GeneratorsGenerators
Generators
 
Django agenda
Django agendaDjango agenda
Django agenda
 

Coocoo for Cocoapods

  • 1. CooCoo For CocoaPods
  • 2. What are CocoaPods ● Library dependency management system for Objective C Applications ● Ruby Based ● Uses spec files to tell what code to download and use
  • 3. Installing pods ● sudo gem install cocoapods ● pod setup
  • 4. Create Podfile ● vim Podfile platform :ios pod 'RestKit', '0.10.3' target :test do link_with 'AppnameTests' pod 'Kiwi', '1.1.0' end
  • 5. Run the Install ● pod install ● Open the Workspace created – open appName.xcworkspace ● Compile the project
  • 6. Creating a Spec ● pod spec create <name or git url> ● Edit spec file ● pod spec lint <name of spec file> ● Copy spec to ~/.cocoapods/master/<AppName>/<versionNo> ● Fork github.com/cocoapods/specs and add folder as you did on the last step ● Submit a pull request
  • 7. Original UrbanAirship Spec Pod::Spec.new do |s| s.name = 'UrbanAirship-iOS-SDK' s.version = '1.3.3' s.license = 'BSD' s.platform = :ios s.summary = 'A simple way to integrate Urban Airship services into your iOS applications.' s.homepage = 'https://github.com/urbanairship/ios-library' s.author = { 'Urban Airship' => 'support@urbanairship.com' } s.source = { :git => 'https://github.com/urbanairship/ios-library.git', :tag => 'v1.3.3' } # Airship ships both UA-prefixed ASI and SBJson, as well as un-prefixed # versions that are no longer used in the .xcodeproj. files = FileList['Airship/**/*.{h,m,c}'] files.exclude(//asi-http-request//) files.exclude(//json-framework//) files.exclude(//google-toolbox-for-mac//) s.source_files = files s.libraries = 'z', 'sqlite3.0' s.frameworks = 'CFNetwork', 'CoreGraphics', 'Foundation', 'MobileCoreServices', 'Security', 'SystemConfiguration', 'UIKit', 'CoreTelephony', 'StoreKit', 'CoreLocation' end
  • 8. Modified UrbanAirship Spec Pod::Spec.new do |s| s.name = 'UrbanAirship-iOS-SDK' s.version = '1.3.3.1' s.license = 'BSD' s.platform = :ios s.summary = 'A simple way to integrate Urban Airship services into your iOS applications.' s.homepage = 'https://github.com/urbanairship/ios-library' s.author = { 'Urban Airship' => 'support@urbanairship.com' } s.source = { :git => 'https://github.com/urbanairship/ios-library.git', :tag => 'v1.3.3' } # Airship ships both UA-prefixed ASI and SBJson, as well as un-prefixed # versions that are no longer used in the .xcodeproj. files = FileList['Airship/**/*.{h,m,c}'] files = files.exclude(//asi-http-request//) files = files.exclude(//json-framework//) files = files.exclude(//google-toolbox-for-mac//) files = files.exclude(//Reachability.*/) files = files.exclude(/miniunz.c/) s.source_files = files s.libraries = 'z', 'sqlite3.0' s.frameworks = 'CFNetwork', 'CoreGraphics', 'Foundation', 'MobileCoreServices', 'Security', 'SystemConfiguration', 'UIKit', 'CoreTelephony', 'StoreKit', 'CoreLocation', 'MessageUI', 'MapKit' s.dependency 'Reachability' end
  • 9. About Me ● Allan Davis ● Email: cajun.code@gmail.com ● Twitter: @cajun_code