CocoaPods Introduction

Fae42a323f80bb60e27e7a0d08e19afa?s=47 Simon Ng
March 12, 2016

CocoaPods Introduction

CocoaPods 簡介:如何利用開源程式庫提升App實力
這是我在AppCoda首個台灣開發者聚會的分享 ( https://www.eventbrite.com/e/appcoda-tickets-22091317726 ),主要介紹CocoaPods的基本運作和講解為何開發者需要使用CocoaPods。為了令大家更明白CocoaPods的使用方法,我們會透過改動一個簡單範例App並結合一個開源程式庫以提升其中的攝影功能。

你可以在GitHub下載完整範例App:

https://github.com/simonng/QuickCam

以下是簡報提及的Open Source Libraries:

https://github.com/hyperoslo/ImagePicker
https://github.com/movielala/VideoSplashKit
https://github.com/matbeich/StickyCollectionView-Swift
https://github.com/FolioReader/FolioReaderKit
https://github.com/Ramotion/folding-cell

https://github.com/vsouza/awesome-ios
https://github.com/SvenTiigi/STLocationRequest
https://github.com/CosmicMind/Material
https://github.com/hyperoslo/Hue
https://github.com/mobileplayer/mobileplayer-ios
https://github.com/ephread/Instructions
https://github.com/yoavlt/LiquidFloatingActionButton

---
A brief introduction to CocoaPods, presented on Mar 12, 2016 during the first meetup of AppCoda TW (http://www.appcoda.com.tw). In this presentation, I'll walk you through the basics of CocoaPods. You'll learn how to install CocoaPods, use it in your own Xcode projects, and understand how it can help you manage third-party/open source libraries.

To download the demo project, please check it out here:

https://github.com/simonng/QuickCam

Fae42a323f80bb60e27e7a0d08e19afa?s=128

Simon Ng

March 12, 2016
Tweet

Transcript

  1. INTRODUCING COCOAPODS HOW TO IMPROVE YOUR APPS WITH OPEN SOURCE

    LIBRARIES COCOAPODS 墋Օ物ই֜ڥአ樄რ纷ୗ䓚൉܋APP䋿ێ SIMON NG
  2. COCOAPODS IS THE DEPENDENCY MANAGER FOR COCOA PROJECTS. COCOAPODSฎCOCOA殻ፓጱ狅蚅ᓕቘૡٍ牐 —

    cocoapods.org
  3. None
  4. WITHOUT USING COCOAPODS ইຎ䷱磪COCOAPODS

  5. USING GOOGLE MOBILE ADS SDK > Download the Google Mobile

    Ads SDK from Google > Unzip it and add GoogleMobileAds.framework to your Xcode project ᥝֵአ GOOGLE MOBILE ADS SDK牧眅Ḓضᥝ݄GOOGLE翕 ᒊӥ斉ፘ橕纷ୗ䓚牐薹 瓟盅牧ٚ疥䲆礯ے蝱 XCODE 殻ፓ牐
  6. ADD DEPENDENT LIBRARIES > AdSupport > AudioToolbox > AVFoundation >

    CoreGraphics > CoreMedia > CoreTelephony > EventKit > EventKitUI > MessageUI > StoreKit > SystemConfiguration
  7. USING COCOAPODS TO INSTALL GOOGLE MOBILE ADS SDK ڥአCOCOAPODSਞ蕕GOOGLE MOBILE

    ADS SDK
  8. None
  9. None
  10. USING COCOAPODS MAKES IT EASIER TO MANAGE LIBRARY DEPENDENCIES FOR

    YOUR XCODE PROJECTS. ֵአ COCOAPODS 胼䒻ۗ眅斕誫ᓕቘ XCODE 殻ፓ
  11. INSTALL [ਞ蕕@ COCOAPODS sudo gem install cocoapods

  12. CREATE [ୌ缏@ A PODFILE pod init

  13. EDIT [翥蜉@ THE PODFILE

  14. SEARCH FOR [矾疨@ PODS Cocoapods.org

  15. POD SEARCH

  16. RUN [䁆ᤈ@ POD INSTALL

  17. 姴懿樄珸 XCODE WORKSPACE WORKSPACEฎӞ㮆XCODE෈կ牧奲ݳԧग़㮆XCODE䌕礯 ޾෈䲆牐

  18. None
  19. WHY YOU NEED TO LEARN COCOAPODS 傶֜ᥝ䋊聜ֵአ COCOAPODS? ਙই֜胼犤֦ጱAPP虋஑ๅ༉?

  20. OPEN SOURCE LIBRARIES THEY CAN EASILY HELP YOU MAKE YOUR

    APPS BETTER. 磪硳瑿ֵአᒫӣො樄რॺկ胼犤眅斕ฃ狶ڊๅ༉ጱAPPS 䋊睞 COCOAPODS 磪ۗฃෝᓕቘᒫӣො樄რॺկ GITHUB.COM / COCOAPODS.ORG
  21. DEMO

  22. VIDEOSPLASHKIT UIViewController library for creating intro pages with background videos

    HTTPS://GITHUB.COM/MOVIELALA/VIDEOSPLASHKIT
  23. STICKY COLLECTION VIEW This UICollectionViewFlowLayout subclass allows you to have

    overlapping collection view cells, just like the Reminders app does. HTTPS://GITHUB.COM/MATBEICH/STICKYCOLLECTIONVIEW-SWIFT
  24. FOLIOREADERKIT A Swift ePub reader and parser framework for iOS.

    HTTPS://GITHUB.COM/FOLIOREADER/FOLIOREADERKIT
  25. SCLALERTVIEW Animated Alert View written in Swift, which can be

    used as a UIAlertView or UIAlertController replacement.
  26. FOLDING CELL https://github.com/Ramotion/folding-cell

  27. None
  28. AWESOME SWIFT LIBRARIES HTTPS://GITHUB.COM/VSOUZA/AWESOME-IOS HTTPS://GITHUB.COM/SVENTIIGI/STLOCATIONREQUEST HTTPS://GITHUB.COM/COSMICMIND/MATERIAL HTTPS://GITHUB.COM/HYPEROSLO/HUE HTTPS://GITHUB.COM/MOBILEPLAYER/MOBILEPLAYER-IOS HTTPS://GITHUB.COM/EPHREAD/INSTRUCTIONS HTTPS://GITHUB.COM/YOAVLT/LIQUIDFLOATINGACTIONBUTTON

  29. REFERENCES [㷢ᘍ虻碘@ Learn more about CocoaPods HTTPS://GUIDES.COCOAPODS.ORG/USING/THE-PODFILE.HTML Swift Package Manager

    and Catalogs HTTPS://SWIFT.ORG/PACKAGE-MANAGER/ HTTPS://DEVELOPER.IBM.COM/SWIFT/PRODUCTS/PACKAGE- CATALOG/
  30. 捝睞獨Ո䌃ጱ纷ୗ嘨 虏֦硩绑臑ग़牏虋஑ๅ䔶

  31. THANK YOU 蘛蘛 SIMONNG@APPCODA.COM / @SIMONNG / @APPCODAMOBILE WWW.FACEBOOK.COM/GROUPS/APPCODATW