CocoaHeads Lyon 17/01/2013 : CocoaPods
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

CocoaHeads Lyon 17/01/2013 : CocoaPods

on

  • 533 views

"CocoaPods"

"CocoaPods"
Par Vincent Tourraine aux CocoaHeads Lyon du 17 janvier 2013.

Statistics

Views

Total Views
533
Views on SlideShare
533
Embed Views
0

Actions

Likes
0
Downloads
3
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

CocoaHeads Lyon 17/01/2013 : CocoaPods Presentation Transcript

  • 1. CocoaPods“The best way to manage library dependencies in Objective-C projects.” CocoaHeads Lyon - janvier 2013 Vincent Tourraine - shazino
  • 2. Pour quoi faire ?• Gérer les dépendances d’un projet XCode - Bibliothèques - Frameworks - Toutes classes, ressources, etc
  • 3. Comment ça marche ?1. Écrire un Podfile pour lister les dépendances2. Utiliser la commande pod pour générer un workspace basé sur un projet et les dépendances du Podfile.
  • 4. Exemple de Podfile platform :ios platform :ios pod pod JSONKit JSONKit pod pod AFNetworking, >= 1.0 AFNetworking, >= 1.0 pod pod Objection, :head Objection, :head
  • 5. Commande pod• Installation $ $ (sudo) gem install cocoapods (sudo) gem install cocoapods $ $ pod setup pod setup
  • 6. Commande pod• Génération du workspace $ pod install $ pod install• Mise à jour du workspace $ pod update $ pod update
  • 7. Exemple de .podspecPod::Spec.new do |s|Pod::Spec.new do |s| s.name s.name = LibraryName’ = LibraryName’ s.version s.version = 1.0.0’ = 1.0.0’ s.summary s.summary = A library that...’ = A library that...’ s.author s.author = { Machin => machin@gmail.com } = { Machin => machin@gmail.com } s.source s.source = { = { :git => https://github.com/USER/REPO.git, :git => https://github.com/USER/REPO.git, :tag => 0.4.2 } :tag => 0.4.2 } s.source_files = Classes, External/**/*.{h,m}’ s.source_files = Classes, External/**/*.{h,m}’ s.dependency s.dependency JSONKit, ~> 1.4’ JSONKit, ~> 1.4’endend
  • 8. Création du .podspec • Génération automatique$ pod spec create [ NAME | https://github.com/USER/REPO ]$ pod spec create [ NAME | https://github.com/USER/REPO ] • Test conformité $ pod spec lint NAME.podspec $ pod spec lint NAME.podspec
  • 9. Plus d’infos• Trouver les Pods http://cocoapods.org https://g ithub.com/cocoaPods/Spec• Documentation https://g ithub.com/CocoaPods/CocoaPods/wiki
  • 10. Plus d’infos• Trouver les Pods http://cocoapods.org https://g ithub.com/cocoaPods/Spec• Documentation https://g ithub.com/CocoaPods/CocoaPods/wiki