[!] No `Podfile' found in the project directory.

1.cd ios/

2.vim Podfile(创建Podfile)且输入内容

source'https://github.com/CocoaPods/Specs.git'
platform:ios,'8.0'
inhibit_all_warnings!
target 'testDemo' do
pod 'AFNetworking', '~> 2.6.0'
end

3.按esc

4.再输入:wq(走完第三步后无需找位置输入:wq,输入就行)

5.pod install

 

posted @ 2019-04-19 14:59  lude1994  阅读(4140)  评论(0编辑  收藏  举报