Perform the following six steps under the current project:
first step:
Switch to the ios directory
cd ios
Step two:
Create Podfile
vim Podfile
third step:
Write the following data in the Podfile
source'https://github.com/CocoaPods/Specs.git'
platform:ios,'8.0'
inhibit_all_warnings!
target 'testDemo' do
pod 'AFNetworking', '~> 2.6.0'
end
the fourth step:
Press esc.
the fifth step:
/ No need to find a location to enter: wq, just enter
wq
Step six:
After saving successfully, re- pod install.