Jorge Maroto García
Cuando haces Pods ya no hay stop
@patoroco
jorge@tactilapp.com
http://tactilapp.com

Saturday, October 19, 13
Hola, me presento…
Jorge Maroto García.
Co-founder & iOS Developer @ Tactilapp.
+3 años jugando con iOS.
AFNetworking collaborative book
http://afnbook.github.io/
Fanboy.

Saturday, October 19, 13
SOFTWARE

Flickr: http://www.flickr.com/photos/julianaorihuela/384300758/
Saturday, October 19, 13
Gestión de dependencias I
Reutilización ‘manual’ del código
Eufemismo del copy & paste.
Pros: ¿fácil?
Contras:
descarga + configuración manual.
lib.zip, lib-old.zip, lib-oldest.zip...
Modo hacker: git clone

Saturday, October 19, 13
Eloy Durán - Without Cocoa Pods (https://vimeo.com/63891717)
Saturday, October 19, 13
Gestión de dependencias II
Submódulos GIT

Pros: fácil de actualizar.
Contras: configuración manual.

Saturday, October 19, 13
Gestión de dependencias III

Saturday, October 19, 13
¿Qué?
Gestor de dependencias para Objective-C
(iOS & Mac OS X).
Basado en Ruby Gems + Bundler.
Símiles para otros lenguajes.
npm, gems, composer, Maven,...

Saturday, October 19, 13
¿Cuándo?
First commit, 12 Agosto 2011.
Eloy Durán (@alloy).
Versión actual: 0.26.2 (19.10.13).
Historia & hitos:
https://speakerdeck.com/orta/cocoapods-state-of-the-union

Saturday, October 19, 13
Saturday, October 19, 13
¿Cómo?

Gema de Ruby.
Podfile + .podspec.
Repositorio en github con todas las specs.

Saturday, October 19, 13
¿Dónde?

Web de Cocoa Pods
http://cocoapods.org/
Gema de Ruby
http://rubygems.org/gems/cocoapods

Saturday, October 19, 13
¿Quién?

Fuente: https://speakerdeck.com/orta/cocoapods-state-of-the-union
Saturday, October 19, 13
¿Cuánto?

Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Datos
2 años de trabajo.
1.400 colaboradores.
2.300 librerías.
4.000 pull-requests.
6.000 podspecs.
220.000 descargas (Ruby Gems).

Fuente: https://speakerdeck.com/orta/cocoapods-state-of-the-union
Saturday, October 19, 13
Saturday, October 19, 13
Instalación

Tip: Gemfile por proyecto *
* http://www.punteroavoid.com/blog/2013/07/12/iniciando-un-nuevo-proyecto-ios/
Saturday, October 19, 13
Backstage

Saturday, October 19, 13
Hello Pods!
1. Crear proyecto en XCode.
2. Crear y configurar el Podfile.
3. pod install.
4. A partir de ahora se utiliza el .xcworkspace en
vez de el .xcodeproj.

Saturday, October 19, 13
Crear el podfile

Saturday, October 19, 13
Crear el podfile

Saturday, October 19, 13
Editar Podfile

Saturday, October 19, 13
Instalación

Saturday, October 19, 13
.xcworkspace
Nuevo proyecto Pods.
Añadidas las librerías del Podfile.
Añadidas las dependencias.
Frameworks del SDK.
Otras librerías Cocoa Pods.

Saturday, October 19, 13
Utilizando la librería

Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Control de versiones
.xcworkspace
Podfile
Podfile.lock
Pods/

Saturday, October 19, 13
¿Librerías?

Foto: http://www.dogwallpapers.net
Saturday, October 19, 13
http://cocoapods.org
Saturday, October 19, 13
@cocoapods

Saturday, October 19, 13
http://github.com/CocoaPods/specs
Saturday, October 19, 13
Saturday, October 19, 13
¡Mi librería tiene que ser c00l!

Saturday, October 19, 13
Do It Yourself
1. Crea la librería.
2. git tag (*)
3. Súbela a Github.
4. Crea el fichero .podspec
5. ¡Comparte!
* Ruby Gems Semantic Versioning
http://guides.rubygems.org/patterns/#semantic_versioning
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Los niños buenos testean los
podspecs antes de enviarlos
Saturday, October 19, 13
Saturday, October 19, 13
Comparte el podspec
1. Repito: verifica tu podspec.
2. No te saltes el paso 1.
3. Fork del repositorio de Specs.
4. Crear carpeta versionada de la librería.
5. Push.

Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
¿Y si no es mi librería?

Foto: http://www.fondosni.com/

Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
A mi jefe no le gusta que enseñe
Foto: https://vimeo.com/51631519
Saturday, October 19, 13
Specs privados
1. Fork del repo Specs de github (opcional).
2. Añadir repo a la búsqueda de pods.
3. Crear pod normalmente.
4. Guardar versionado.

Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Una ayudita, por favor
Saturday, October 19, 13
KFCocoaPodsPlugin

https://github.com/ricobeck/KFCocoaPodsPlugin

Saturday, October 19, 13
Saturday, October 19, 13
CocoaDocs

http://cocoadocs.org
Saturday, October 19, 13
Saturday, October 19, 13
Saturday, October 19, 13
Jorge Maroto García
Cuando haces Pods ya no hay stop
jorge@tactilapp.com

@patoroco

http://tactilapp.com

http://jorgemaroto.es
http://git.jorgemaroto.es
http://in.jorgemaroto.es

Saturday, October 19, 13

Codemotion 2013 - presentación cocoa pods