ate ate - 1 year ago 723
iOS Question

The dependency `AFNetworking (~> 2.5)` is not used in any concrete target

I want to install AFNetworking but I have a problem how can I fix and install? I used getting started with AFNetworking.

$ sudo gem install cocoapods
$ pod setup

$ touch Podfile
$ open -a Xcode Podfile

source ''
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.5'

Answer Source


target 'MyApp' do
  pod 'AFNetworking', '~> 2.5'


Then run pod install from the project directory.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download