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
Gen3R: 3D Scene Generation Meets Feed-Forward Reconstruction
spatial_ai_network
0
140
「最後に責任を取るのはチーム」— 人間のPRレビューを最小化してアップデートしたメンタルモデル
jnishime_dresscode
0
960
ファミコンでPHPを動かす / PHP on the Famicom
tomzoh
2
510
SRE本の知られざる名シーン / The Hidden Gems of Google SRE Book
nari_ex
2
430
AI Coding Agent時代のcdk-nagガードレール 〜組織ルールを強制CIで守り抜く設計の挑戦〜
mhrtech
3
460
関数型の考えを TypeScript に持ち込んで、テストしやすい純粋関数を増やす / Pure at the Core, Effects at the Edge: Bringing Functional Thinking into TypeScript
kaminashi
2
140
「AIに依存している」と 「AIを使いこなしている」の違い
k8yasuma
0
120
kaonavi Tech Night#1
kaonavi
0
130
データエンジニアリングとドメイン駆動設計
masuda220
PRO
7
1.2k
AI Native なプロダクト組織の立ち上げ方 : 生産性 100 倍への挑戦
mikesorae
0
460
OPENLOGI Company Profile for engineer
hr01
1
74k
凡エンジニアがこの先生きのこるためには。〜TypeScript完全に理解したい〜
alchemy1115
2
330
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
410
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
370
Building the Perfect Custom Keyboard
takai
2
820
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
270
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
220
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
220
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
220
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.9k
Agile that works and the tools we love
rasmusluckow
331
22k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
280
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