$30 off During Our Annual Pro Sale. View Details »

CocoaPods Introduction

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

Simon Ng

March 12, 2016
Tweet

More Decks by Simon Ng

Other Decks in Programming

Transcript

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

    LIBRARIES COCOAPODS 墋Օ物ই֜ڥአ樄რ纷ୗ䓚൉܋APP䋿ێ SIMON NG
  2. 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 殻ፓ牐
  3. ADD DEPENDENT LIBRARIES > AdSupport > AudioToolbox > AVFoundation >

    CoreGraphics > CoreMedia > CoreTelephony > EventKit > EventKitUI > MessageUI > StoreKit > SystemConfiguration
  4. USING COCOAPODS MAKES IT EASIER TO MANAGE LIBRARY DEPENDENCIES FOR

    YOUR XCODE PROJECTS. ֵአ COCOAPODS 胼䒻ۗ眅斕誫ᓕቘ XCODE 殻ፓ
  5. OPEN SOURCE LIBRARIES THEY CAN EASILY HELP YOU MAKE YOUR

    APPS BETTER. 磪硳瑿ֵአᒫӣො樄რॺկ胼犤眅斕ฃ狶ڊๅ༉ጱAPPS 䋊睞 COCOAPODS 磪ۗฃෝᓕቘᒫӣො樄რॺկ GITHUB.COM / COCOAPODS.ORG
  6. 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
  7. FOLIOREADERKIT A Swift ePub reader and parser framework for iOS.

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

    used as a UIAlertView or UIAlertController replacement.
  9. 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/