您要在 Podfile 中添加 pod 'NSURLConnection+AuthenticationChallenge', '~> 0.1'
类似的代码,如下所示
target 'MyApp' do
pod 'NSURLConnection+AuthenticationChallenge', '~> 0.1'
end
然后在终端中运行 pod install
,或者在 CocoaPods.app 中运行。
或者为了进行测试运行,运行以下命令
pod try NSURLConnection+AuthenticationChallenge