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
Publishing your library with Carthage
Search
Frédéric Maquin
June 30, 2016
Programming
0
980
Publishing your library with Carthage
Talk given at CocoaHeads Strasbourg.
Frédéric Maquin
June 30, 2016
Tweet
Share
More Decks by Frédéric Maquin
See All by Frédéric Maquin
Bluetooth Low Energy
ephread
1
470
Trends & Patterns
ephread
0
1.7k
Seeding your library with CocoaPods
ephread
0
670
Other Decks in Programming
See All in Programming
エラーって何種類あるの?
kajitack
5
130
Development of an App for Intuitive AI Learning - Blockly Summit 2025
teba_eleven
0
110
コードに語らせよう――自己ドキュメント化が内包する楽しさについて / Let the Code Speak
nrslib
6
1.4k
RubyKaigiで得られる10の価値 〜Ruby話を聞くことだけが RubyKaigiじゃない〜
tomohiko9090
0
140
#QiitaBash TDDでAIに設計イメージを伝える
ryosukedtomita
2
1.7k
イベントストーミングから始めるドメイン駆動設計
jgeem
4
810
PT AI без купюр
v0lka
0
230
Rails産でないDBを Railsに引っ越すHACK - Omotesando.rb #110
lnit
1
160
技術懸念に立ち向かい 法改正を穏便に乗り切った話
pop_cashew
0
1.3k
実践ArchUnit ~実例による検証パターンの紹介~
ogiwarat
2
250
Julia という言語について (FP in Julia « SIDE: F ») for 関数型まつり2025
antimon2
3
910
事業戦略を理解してソフトウェアを設計する
masuda220
PRO
21
5.9k
Featured
See All Featured
Speed Design
sergeychernyshev
30
990
Faster Mobile Websites
deanohume
307
31k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
Unsuck your backbone
ammeep
671
58k
Site-Speed That Sticks
csswizardry
10
630
Code Reviewing Like a Champion
maltzj
524
40k
The World Runs on Bad Software
bkeepers
PRO
68
11k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.3k
Music & Morning Musume
bryan
46
6.6k
It's Worth the Effort
3n
184
28k
Transcript
PUBLISHING YOUR LIBRARY WITH CARTHAGE Frédéric Maquin @ephread CocoaHeads Strasbourg
June 30th, 2016
2
Decentralised dependency manager for Xcode projects. 3
OCTOBER 2014 JUSTIN SPAHR-SUMMERS 4
OCTOBER 2014 JUSTIN SPAHR-SUMMERS 4
Written in Swift. Based on iOS 8+ dynamic frameworks. 5
VS. 6
CocoaPods is CENTRALISED, EASY but INTRUSIVE. 7
Carthage is DECENTRALISED, UNINTRUSIVE and SIMPLE. CARTHAGE 8
EASY SIMPLE ≠ 9
GETTING STARTED 10
INSTALLATION $ brew install carthage 11
INSTALLATION https://github.com/Carthage/Carthage/releases or download PREBUILT PACKAGES. 12
Cartfile github "ReactiveCocoa/ReactiveCocoa" git "https://enterprise.local/desktop/git-error-translations2.git" 13
Cartfile github "ReactiveCocoa/ReactiveCocoa" git "https://enterprise.local/desktop/git-error-translations2.git" ~> 4.0 13
Cartfile github "ReactiveCocoa/ReactiveCocoa" git "https://enterprise.local/desktop/git-error-translations2.git" "master" 13
Cartfile $ carthage update 14
Cartfile $ carthage update FETCH the code and BUILD the
framework. 14
FRAMEWORK LINKING 15
STRIP ARCHITECTURE (iOS) Work around an App Store BUG. 16
You’re ALL SET! 17
PUBLISH 18
Bundle your code in a FRAMEWORK. 19
Share your SCHEMES. PRODUCT > SCHEME > MANAGE SCHEMES… 20
It doesn’t get any SIMPLER. 21
It doesn’t get any SIMPLER. But don’t forget to TAG
versions. 21
It doesn’t get any SIMPLER. But don’t forget to TAG
versions. And PUSH the code somewhere… 21
IN SHORT 22
CocoaPods is EASY TO USE and can LINT/ANALYSE your code.
PROS 23
CocoaPods can even generate the DOCUMENTATION for you. PROS 24
CONS CocoaPods is INTRUSIVE and can be SLOW. 25
Pods require some WORK to publish. CONS 26
Carthage is FAST, UNINTRUSIVE and SIMPLE. CARTHAGE PROS 27
Carthage ONLY SUPPORTS iOS 8+. CARTHAGE CONS 28
Carthage requires more work when IMPORTING LIBRAIRIES. CARTHAGE CONS 29
By the way, I prefer CARTHAGE over COCOAPODS. :o) 30
QUESTIONS? 31