cocoapods 之pod install报错fatal: unable to access 'https://github.com/AFNetworking

79 阅读1分钟

[!] Error installing AFNetworking

[!] /usr/bin/git clone github.com/AFNetworkin… /var/folders/sp/877kfvm127j515_z5vltctpm0000gn/T/d20250327-49274-immbx --template= --single-branch --depth 1 --branch 4.0.1

Cloning into '/var/folders/sp/877kfvm127j515_z5vltctpm0000gn/T/d20250327-49274-immbx'...

fatal: unable to access 'github.com/AFNetworkin…': Empty reply from server

在Podfile文件中加入一行,如下:

source 'github.com/CocoaPods/S…

#以 source 开头的这一行为新加入的

platform :ios, '12.0'

target ‘你的工程名字’ do

pod 'Masonry', '1.1.0'

end