Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pod Installlation Getting Long Time and Not Install

I am trying to install Cocoapods, and it kind of hang while downloading AlamoFire! Anyone have faced similar issue?

1) Open terminal

2) sudo gem install cocoapods sudo gem install -n /usr/local/bin cocoapods

3) pod setup

4) create a xcode project

5) cd "path to your project root directory"

6) pod init

7) open -a Xcode Podfile

8) pod 'Alamofire', '~> 3.4'

It just feel like hanged and not sucessfull even after long wait!

Thanks in Advance!!!

like image 585
Pratik Panchal Avatar asked Jun 17 '16 06:06

Pratik Panchal


People also ask

How long does pod installation take?

Executing "pod install" now takes less than 2 minutes, while before making this changes it took about 12 minutes.

How do I uninstall pod and install again?

Just rm -rf that pod's folder, and remove the line from the Podfile. Then run pod install again.

How long does it take to clone CocoaPods?

About 12.5 minutes of the 15 minute build is the repo cloning.


2 Answers

Use this one in your pod file ->

**source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'Pod DemoTests' do
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire'
end**

this will solve your problem ..

like image 75
Govind Prajapati Avatar answered Oct 07 '22 09:10

Govind Prajapati


pod Installation

1.sudo gem install cocoapods 2.pod init 3.import needed framework in podfile 4.pod install 5.open with workspace.

like image 37
Muruganandam Sathasivam Avatar answered Oct 07 '22 09:10

Muruganandam Sathasivam