Preparatory installation is longer and not installed

I'm trying to install Cocoapods, and it seems to freeze when I load AlamoFire ! Has anyone encountered a similar problem?

1) Open a terminal

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

3) pod setup

4) create an xcode project

5) cd "path to the root directory of your project"

6) pod init

7) open -a Xcode Podfile

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

He just feels hanged and not very successful even after a long wait!

Thanks in advance!

+7
ios xcode swift cocoapods
source share
2 answers

Use this 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.

+3
source share

pod Installation

1.sudo gem install cocoapods 2.pod init 3.import need a framework in podfile 4.pod install 5. open the workspace.

+1
source share

All Articles