CocoaPods AFNetworking ve Google Mobile Ads SDK Ekleme

Xcode 8.1

sudo gem install cocoapods -V -> Install cocoapods
pod setup
Go to the root of your project directory and execute:
pod init    -> This will add a base Podfile to your project.
Open created podfile and insert after "target 'YourAppName' do"

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.5'

In the root directory of your project execute command:

pod install

Import library with:

#import "AFNetworking.h"   -> import this in your application

Always open app from Appname.xcworkspace

Xcode 9.4.1

Podfile içerisine aşağıdaki satırları ekliyoruz

  platform :ios, '8.0'
  pod 'AFNetworking', '~> 3.0'
  pod 'Google-Mobile-Ads-SDK'