Skip to content

Installation

PatchTheCode edited this page Apr 14, 2024 · 1 revision

Installation

This library can be installed in 3 ways; Cocoapods, Carthage, or manually.

Via Cocoapods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate JTAppleCalendar into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'JTAppleCalendar', '~>; 7.1'
end

Then, run the following command:

pod install

Completed!

New to Cocoapods? Did the steps above fail? Then read on.

If you’re new to CocoaPods, simply search how to integrate Cocoapods into your project. Trust me that 5-7 minutes of research will bring you much benefit. CocoaPods one of the top dependency manager for integrating 3rd party frameworks into your project. But in a nut-shell, here is how I did my installation with a sample project called test

  1. Install Cocoapods.
  2. Create a new xcode project. Save the name as: test
  3. Go to your console in the directory location where your project is located.
  4. Type and run the command: pod init
  5. This will create a file called: Podfile in that same location.
  6. Edit that Podfile so that it looks like the following:
Clone this wiki locally