SlideShare a Scribd company logo
CocoaPods	
  
  Jordi	
  Giménez	
  
Installa<on	
  

•      Install	
  Command	
  Line	
  Tools	
  from	
  Xcode	
  
	
  
•      sudo gem update --system
•      sudo gem install cocoapods
•      pod setup




                                        mobilejazz.cat	
  
Use	
  in	
  a	
  project	
  

•    Create	
  a	
  Podfile	
  
•    pod install
•    Open	
  .xcworkspace file	
  
•    That’s	
  it!	
  




                            mobilejazz.cat	
  
Declare	
  a	
  library	
  

A	
  lot	
  of	
  libraries	
  already	
  have	
  a	
  Podspec	
  
	
  
If	
  not,	
  you	
  can	
  create	
  one:	
  
•    ls LICENSE # make sure has a license
•    pod spec create ProjectName # Create a .podspec (doesn't need
     to be in repo)
•    vi ProjectName.podspec
•    pod spec lint # Check spec




                                            mobilejazz.cat	
  
More	
  

•  Important:	
  LICENSE	
  and	
  .podspec	
  need	
  to	
  be	
  in	
  the	
  root	
  of	
  
   the	
  repo	
  
Reference:	
  
•  hOps://github.com/CocoaPods/CocoaPods/wiki/The-­‐
   podspec-­‐format	
  
•  hOps://github.com/CocoaPods/CocoaPods/wiki/Dependency-­‐
   declara<on-­‐op<ons	
  


                                       mobilejazz.cat	
  
Sample	
  code	
  

•  hOps://github.com/jgimenez/CocoaPodsBarcelonaWeather	
  
•  hOps://github.com/jgimenez/CocoaPodsWeatherLibrary	
  




                         mobilejazz.cat	
  

More Related Content

PDF
Using Cocoapods
PDF
Building a Drupal site with Git
PDF
Intro to Git for Drupal 7
PPTX
Cocoapods
PDF
Hacking on WildFly 9
PDF
The Modern Developer Toolbox
ODP
ATDD with Behat and Selenium (LDNSE6)
PPTX
GitFlow, SourceTree and GitLab
Using Cocoapods
Building a Drupal site with Git
Intro to Git for Drupal 7
Cocoapods
Hacking on WildFly 9
The Modern Developer Toolbox
ATDD with Behat and Selenium (LDNSE6)
GitFlow, SourceTree and GitLab

What's hot (20)

PDF
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps
PDF
Mastering composer
PPTX
Create Your First Cocoa pods
PPTX
Package Management on Windows with Chocolatey
PPTX
Introduction to bower
PDF
Kinect Workshop Part 1/2
PPTX
How to Build & Deploy a HelloWorld API function using Java on OpenShift in...
PDF
SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
PDF
Puppet at GitHub
PPTX
GitHub Presentation
PPT
Dockerizing BDD : Ruby-Cucumber Example
PDF
PHP Conference Argentina 2013 - Independizate de tu departamento IT - Habilid...
PPTX
PhoneGap Day 2016 EU: Creating the Ideal Cordova Dev Environment
PPT
Git 101 - Crash Course in Version Control using Git
PDF
Introduction to GitHub Actions
PDF
Deploying Symfony | symfony.cat
PPTX
PHP & JavaScript & CSS Coding style
KEY
ActiveLAMP Process
PDF
Testing all your code through HipChat in Docker
PDF
Creating Custom Slack Integrations with Vapor
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps
Mastering composer
Create Your First Cocoa pods
Package Management on Windows with Chocolatey
Introduction to bower
Kinect Workshop Part 1/2
How to Build & Deploy a HelloWorld API function using Java on OpenShift in...
SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
Puppet at GitHub
GitHub Presentation
Dockerizing BDD : Ruby-Cucumber Example
PHP Conference Argentina 2013 - Independizate de tu departamento IT - Habilid...
PhoneGap Day 2016 EU: Creating the Ideal Cordova Dev Environment
Git 101 - Crash Course in Version Control using Git
Introduction to GitHub Actions
Deploying Symfony | symfony.cat
PHP & JavaScript & CSS Coding style
ActiveLAMP Process
Testing all your code through HipChat in Docker
Creating Custom Slack Integrations with Vapor
Ad

Similar to CocoaPods introduction (20)

PDF
Cocoapods Overview - library dependency manager for iOS
PPTX
CocoaPods.pptx
PDF
Codemotion 2013 - presentación cocoa pods
PDF
Cocoapods in action
PDF
RubyMotion Inspect Conference - 2013. (Without speaker notes.)
ODP
Coocoo for Cocoapods
PDF
RubyMotion Inspect Conference - 2013. (With speaker notes.)
PPTX
Private pod support using cocoa pods in ios
PDF
Денис Лебедев-Управление зависимостями с помощью CocoaPods
PDF
CocoaPods Basic Usage
PPTX
What is CocoaPods and how to setup?
PDF
Manage your external libraries with CocoaPods
PDF
Cocoa pods iOSDevUK 14 talk: managing your libraries
PDF
Beyond ‘what is CocoaPods?’ @ CocoaHeads NL 21-02-2014
PPTX
Continuous integration by Rémy Virin
PDF
MacRuby & RubyMotion - Madridrb May 2012
PDF
Creating Cocoapods Library
PDF
Practical Cocoapods
KEY
CocoaPods
PDF
CocoaHeads Rennes #13 : CocoaPods
Cocoapods Overview - library dependency manager for iOS
CocoaPods.pptx
Codemotion 2013 - presentación cocoa pods
Cocoapods in action
RubyMotion Inspect Conference - 2013. (Without speaker notes.)
Coocoo for Cocoapods
RubyMotion Inspect Conference - 2013. (With speaker notes.)
Private pod support using cocoa pods in ios
Денис Лебедев-Управление зависимостями с помощью CocoaPods
CocoaPods Basic Usage
What is CocoaPods and how to setup?
Manage your external libraries with CocoaPods
Cocoa pods iOSDevUK 14 talk: managing your libraries
Beyond ‘what is CocoaPods?’ @ CocoaHeads NL 21-02-2014
Continuous integration by Rémy Virin
MacRuby & RubyMotion - Madridrb May 2012
Creating Cocoapods Library
Practical Cocoapods
CocoaPods
CocoaHeads Rennes #13 : CocoaPods
Ad

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Electronic commerce courselecture one. Pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Spectroscopy.pptx food analysis technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Approach and Philosophy of On baking technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation theory and applications.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Electronic commerce courselecture one. Pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
MIND Revenue Release Quarter 2 2025 Press Release
A comparative analysis of optical character recognition models for extracting...
Spectroscopy.pptx food analysis technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars
Review of recent advances in non-invasive hemoglobin estimation
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
Approach and Philosophy of On baking technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation theory and applications.pdf
Building Integrated photovoltaic BIPV_UPV.pdf

CocoaPods introduction

  • 1. CocoaPods   Jordi  Giménez  
  • 2. Installa<on   •  Install  Command  Line  Tools  from  Xcode     •  sudo gem update --system •  sudo gem install cocoapods •  pod setup mobilejazz.cat  
  • 3. Use  in  a  project   •  Create  a  Podfile   •  pod install •  Open  .xcworkspace file   •  That’s  it!   mobilejazz.cat  
  • 4. Declare  a  library   A  lot  of  libraries  already  have  a  Podspec     If  not,  you  can  create  one:   •  ls LICENSE # make sure has a license •  pod spec create ProjectName # Create a .podspec (doesn't need to be in repo) •  vi ProjectName.podspec •  pod spec lint # Check spec mobilejazz.cat  
  • 5. More   •  Important:  LICENSE  and  .podspec  need  to  be  in  the  root  of   the  repo   Reference:   •  hOps://github.com/CocoaPods/CocoaPods/wiki/The-­‐ podspec-­‐format   •  hOps://github.com/CocoaPods/CocoaPods/wiki/Dependency-­‐ declara<on-­‐op<ons   mobilejazz.cat  
  • 6. Sample  code   •  hOps://github.com/jgimenez/CocoaPodsBarcelonaWeather   •  hOps://github.com/jgimenez/CocoaPodsWeatherLibrary   mobilejazz.cat