原因主要是cocopods install 被墙了。
可以在podfile写好代码之后,去终端进行安装。
localhost:~ ltn$ cd /Users/hunpai/Desktop/Netwotking (这里一定注意,NetWorking是项目名称的那个文件。一定不要找错路径,不然会报错。)
localhost:Netwotking hunpai$ pod install --verbose --no-repo-update
// 以下是终端输出
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods`: (``)
Resolving dependencies of `Podfile`
Comparing resolved specification to the sandbox manifest
A AFNetworking
Downloading dependencies