今天在集成Twitter做第三方登錄,在使用cocoapods安裝SDK的時(shí)候出現(xiàn)下方的錯(cuò)誤:
終端打印信息:
[!] Error installing TwitterCore
[!] /usr/bin/curl -f -L -o /var/folders/_g/32sghxwj26d9kk_wdfr4rdr00000gp/T/d20180530-9930-1duizc7/file.zip https://ton.twimg.com/syndication/twitterkit/ios/3.1.0/TwitterCore.zip --create-dirs --netrc-optional
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:01:14 --:--:-- 0curl: (7) Failed to connect to ton.twimg.com port 443: Operation timed out

Error message.png
安裝失敗的原因,系統(tǒng)偏好設(shè)置-網(wǎng)絡(luò)-高級(jí)-代理:

失敗原因.png

更正后.png
重新update就好!