Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CocoaPods: Gerenciador de Dependência para iOS ...
Search
Guilherme Martinez Sampaio
July 10, 2013
Technology
84
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CocoaPods: Gerenciador de Dependência para iOS e Mac
Guilherme Martinez Sampaio
July 10, 2013
More Decks by Guilherme Martinez Sampaio
See All by Guilherme Martinez Sampaio
Reactive Cocoa e MVVM
gsampaio
1
110
Other Decks in Technology
See All in Technology
【GCC2026】鉄拳8でのVFX開発事例
bandainamcostudios
PRO
0
190
DatadogのBits Chatが開発組織にもたらしたもの / What Bits Chat Has Brought Us
sms_tech
1
290
医療の現場を変革に挑戦した半年間の軌跡 - PythonとAIで現場を変える / From Code to Care
soudai
PRO
0
500
LLM・AIエージェントシステムベストプラクティス
shibuiwilliam
6
1.6k
AI-DLC実践録_フルサイクル開発への挑戦
miyuc
0
340
生成 AI の基礎 〜 サンプル実装で学ぶ基本原理
enakai00
7
4.6k
なぜ Temporal の大小比較には compare しかないのか / Why Does Temporal Only Have compare() for Comparisons
kazukihayase
1
190
Sets in Go
ramalho
1
1.2k
巨大気象データと戦う ― サロゲートモデル学習を高速化する圧縮技術
gpuunite_official
0
220
35分でわかるEffective Platform Engineering
nwiizo
5
580
英語が話せなくてもKubeConスタッフに参加した話
yusuke427
2
1.1k
属人化を叩き割れ!「制作加速」と「安定化」の矛盾を打破する:8年目プロダクトが辿り着いた「ミスが起こり得ない」アセット制作フローの全貌
gree_tech
PRO
0
120
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Balancing Empowerment & Direction
lara
6
1.2k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
970
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
Design in an AI World
tapps
1
290
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Designing Powerful Visuals for Engaging Learning
tmiket
1
500
Done Done
chrislema
186
16k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
300
So, you think you're a good person
axbom
PRO
2
2.1k
Transcript
Cocoa Pods Guilherme Martinez Sampaio Wednesday, July 10, 13
Gerenciador de dependência para iOS e OSX Wednesday, July 10,
13
AFNetworking SSKeychain GoogleAnalytics-iOS-SDK OCMock FormatterKit FacebookSDK SDWebImage FlatUIKit GHUnit GPUImage
MBProgressHUD TestFlightSDK e mais 1836 outros projetos! Cheio de projetos open source Wednesday, July 10, 13
Instalação $ [sudo] gem install cocoapods $ pod setup Wednesday,
July 10, 13
Adicionando ao Projeto $ touch Podfile $ open -e Podfile
Wednesday, July 10, 13
plataform :ios, ‘6.0’ inhibit_all_warnings! pod ‘AFNetworking’, ‘1.1.0’ pod ‘Reachability’, ‘~>
3.0.0’ pod ‘FormatterKit’ target ‘MyTestTarget’ do pod ‘OCMock’, ‘~> 2.0.1’ end Wednesday, July 10, 13
plataform :ios, ‘6.0’ inhibit_all_warnings! pod ‘AFNetworking’, ‘1.1.0’ pod ‘Reachability’, ‘~>
3.0.0’ pod ‘FormatterKit’ target ‘MyTestTarget’ do pod ‘OCMock’, ‘~> 2.0.1’ end Wednesday, July 10, 13
plataform :ios, ‘6.0’ inhibit_all_warnings! pod ‘AFNetworking’, ‘1.1.0’ pod ‘Reachability’, ‘~>
3.0.0’ pod ‘FormatterKit’ target ‘MyTestTarget’ do pod ‘OCMock’, ‘~> 2.0.1’ end Wednesday, July 10, 13
plataform :ios, ‘6.0’ inhibit_all_warnings! pod ‘AFNetworking’, ‘1.1.0’ pod ‘Reachability’, ‘~>
3.0.0’ pod ‘FormatterKit’ target ‘MyTestTarget’ do pod ‘OCMock’, ‘~> 2.0.1’ end Wednesday, July 10, 13
plataform :ios, ‘6.0’ inhibit_all_warnings! pod ‘AFNetworking’, ‘1.1.0’ pod ‘Reachability’, ‘~>
3.0.0’ pod ‘FormatterKit’ target ‘MyTestTarget’ do pod ‘OCMock’, ‘~> 2.0.1’ end Wednesday, July 10, 13
Adicionando ao Projeto $ pod install Wednesday, July 10, 13
Pronto, todos as dependências serão baixadas e um workspace sera
configurado Wednesday, July 10, 13
Demo Wednesday, July 10, 13
Criando uma Podspec $ pod spec create Wednesday, July 10,
13
Pod::Spec.new do |s| s.name = “MyComponent” s.version = “0.0.1” s.summary
= “Descrição” s.homepage = “http://EXAMPLE/MyComponent” s.license = “MIT” s.author = {“Guilherme” => “
[email protected]
”} s.source = {:git => ”path.git”, :tag => “0.0.1” } s.plataform = :ios, ‘6.0’ s.source_files = “Classes/**/*.{h,m}” s.frameworks = “CoreImage”, “CoreAudio” s.requires_arc = true s.dependecy ‘FlatUIKit’, ‘~> 1.2’ end Wednesday, July 10, 13
Pod::Spec.new do |s| s.name = “MyComponent” s.version = “0.0.1” s.summary
= “Descrição” s.homepage = “http://EXAMPLE/MyComponent” s.license = “MIT” s.author = {“Guilherme” => “
[email protected]
”} s.source = {:git => ”path.git”, :tag => “0.0.1” } s.plataform = :ios, ‘6.0’ s.source_files = “Classes/**/*.{h,m}” s.frameworks = “CoreImage”, “CoreAudio” s.requires_arc = true s.dependecy ‘FlatUIKit’, ‘~> 1.2’ end Wednesday, July 10, 13
Pod::Spec.new do |s| s.name = “MyComponent” s.version = “0.0.1” s.summary
= “Descrição” s.homepage = “http://EXAMPLE/MyComponent” s.license = “MIT” s.author = {“Guilherme” => “
[email protected]
”} s.source = {:git => ”path.git”, :tag => “0.0.1” } s.plataform = :ios, ‘6.0’ s.source_files = “Classes/**/*.{h,m}” s.frameworks = “CoreImage”, “CoreAudio” s.requires_arc = true s.dependecy ‘FlatUIKit’, ‘~> 1.2’ end Wednesday, July 10, 13
Pod::Spec.new do |s| s.name = “MyComponent” s.version = “0.0.1” s.summary
= “Descrição” s.homepage = “http://EXAMPLE/MyComponent” s.license = “MIT” s.author = {“Guilherme” => “
[email protected]
”} s.source = {:git => ”path.git”, :tag => “0.0.1” } s.plataform = :ios, ‘6.0’ s.source_files = “Classes/**/*.{h,m}” s.frameworks = “CoreImage”, “CoreAudio” s.requires_arc = true s.dependecy ‘FlatUIKit’, ‘~> 1.2’ end Wednesday, July 10, 13
Criando uma Podspec $ pod spec lint Wednesday, July 10,
13
Criando uma Repositório de Specs $ mkdir MyPodspecRep $ cd
MyPodspecRep $ mkdir MySpec $ cd MySpec $ mkdir 0.0.1 $ cp path/to/MySpec.podspec 0.0.1/ recomendo fortemente criar um git para este repositório Wednesday, July 10, 13
Criando uma Repositório de Specs $ mv MyPodspecRep ~/.cocoapods Wednesday,
July 10, 13
Demo Wednesday, July 10, 13
Obrigado! @gsampaio https://github.com/gsampaio/TDCExample http://cocoapods.org Wednesday, July 10, 13