Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
AIとペアプロを始める。人とのペアプロをやめる。ペアプロの良さを改めて知る。もっと好きになった。 / Rediscovering Pair Programming
honyanya
1
330
薬剤師(ドメインエキスパート)と一緒に育てる薬局向けAIアシスタント
kakehashi
PRO
2
140
Oracle Cloud Infrastructure IaaS 新機能アップデート 2026/6 - 2026/8
oracle4engineer
PRO
0
140
AIに丸投げしないトイル削減 / Eliminating Toil Without Leaving It All to AI
kohbis
4
1.1k
10分で知る最近のOmarchy
komagata
0
230
Redmine 7.0で私が開発した新機能の狙いと背景
vividtone
1
150
20260912_スクフェス三河
kgnkhkr
0
260
【視聴者参加型!】AWSセキュリティアンチパターンクイズ
syoshie
1
490
module Synths; end
asonas
1
130
TinyGo 開発サイクルを高速化する:Go で作るエミュレータ入門
zozotech
PRO
1
580
スクラムで身についていた動き方を、XPで捉え直してみた
codmoninc
PRO
1
340
WAF 運用改善の承認サイクル/SRE_BizReach_MIXI_1
visional_engineering_and_design
2
420
Featured
See All Featured
From π to Pie charts
rasagy
0
360
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Music & Morning Musume
bryan
47
7.4k
Odyssey Design
rkendrick25
PRO
2
800
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
500
Mind Mapping
helmedeiros
1
350
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
370
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.3k
Darren the Foodie - Storyboard
khoart
PRO
3
3.9k
KATA
mclloyd
PRO
35
15k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
210
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