創(chuàng)建Podfile
1. 打開終端
2. cd 工程路徑
3. 輸入 vim Podfile回車
4. 保存文件(:wq)
5. 打開生成的Podfile文件
platform:ios,'8.0'
target '工程名' do
pod 'AFNetworking', '~> 3.0'
end
創(chuàng)建報(bào)錯
Found a swap file by the name ".podfile.swp"
platform:ios,'8.0'
target '工程名' do
pod 'AFNetworking', '~> 3.0'
end
Found a swap file by the name ".podfile.swp"