• Skip to primary navigation
  • Skip to main content

AmaKit

Amarillo Swift Developer Workgroup

  • Home
  • Our Journal
  • Contact

CocoaPods

July 22, 2020 by Kenneth Jackson Leave a Comment

https://guides.cocoapods.org/using/getting-started.html

Installation

$ sudo gem install cocoapods

Sudo-less installation

export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH

Updating CocoaPods

$ [sudo] gem install cocoapods

Prepare the Podfile

The podfile is the pod configuration file for your project  and is placed in the root directory of your project.

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'iOS' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for iOS
  pod 'Firebase/Auth'
  pod 'Firebase/Analytics'
  pod 'Firebase/Firestore'
  pod 'FirebaseFirestoreSwift'
end

target 'macOS' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for macOS
  pod 'Firebase/Auth'
  pod 'Firebase/Analytics'
  pod 'Firebase/Firestore'
  pod 'FirebaseFirestoreSwift'
end

Install Pod Files

From the root project directory run.

$ pod install

Category iconCocoaPods

Reader Interactions

Leave a Reply Cancel reply

Copyright © AmaKit

Designed by Kenneth Jackson at Connections.Digital in Amarillo, Texas

Powered by WPplaces