微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

CDN:中继回购更新失败-12个错误:

如何解决CDN:中继回购更新失败-12个错误:

我尝试更新Pod时出错,

pod update

发现错误

[!] CDN: trunk Repo update Failed - 12 error(s):
CDN: trunk URL Couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/9/b/5/FBSDKCoreKit/6.1.0-alpha/FBSDKCoreKit.podspec.json Response: Timeout was reached

但是,我可以从浏览器顺利访问json路径。

如何解决此问题?

解决方法

我有和您一样的问题,我通过运行解决了该问题:

pod repo remove trunk 然后是pod install,一旦完成,我就运行pod update并更新了所有内容。

,

CocoaPods提供了使用git或CDN的功能。 CDN是默认设置,但是对于那些不起作用的用户,您可以通过添加

来退回到以前的基于git的实现

要修复在podfile上添加git路径的问题。

source 'https://github.com/CocoaPods/Specs.git'
,

我遇到了同样的问题,以下步骤帮助我解决了这些错误-

  1. 注释可可豆的git路径并添加CDN的路径 enter image description here

  2. pod repo remove trunk

  3. pod install

  4. input_stream = 'rtsp://'+username+':'+password+'@'+ip+'/user='+username+'_password='+password+'_channel=0channel_number_stream=0.sdp' input_stream---> rtsp://admin:Admin123@192.168.1.208/user=admin_password=Admin123_channel=0channel_number_stream=0.sdp input_stream---> rtsp://Admin:@192.168.1.209/user=Admin_password=_channel=0channel_number_stream=0.sdp vs = cv2.VideoCapture(input_stream) fps_rate = int(vs.get(cv2.CAP_PROP_FPS)) I have two IP camera which have two diffrent fps_rate(Camera 1 have 18000 and camera 2 have 20 fps) video_file_name = 0 start_time = time.time() while(True): ret,frame = vs.read() time.sleep(0.2) # <= Simulate processing time (mask detection,face detection and many detection is hapning) ### Start of writing a video to disk minute = 5 ## saving a file for 5 minute only then saving another file for 5 min second = 60 minite_to_save_video = int(minute) * int(second) # if we are supposed to be writing a video to disk,initialize if time.time() - start_time >= minite_to_save_video or video_file_name == 0 : ## where H = heigth,W = width,C = channel H,W,C = frame.shape print('time.time()-->',time.time(),'video_file_name-->',video_file_name,' #####') start_time = time.time() video_file_name = str(time.mktime(datetime.datetime.now().timetuple())).replace('.0','') output_save_directory = output_stream+str(int(video_file_name))+'.mp4' fourcc = cv2.VideoWriter_fourcc(*'avc1') writer = cv2.VideoWriter(output_save_directory,fourcc,20.0,(W,H),True) # check to see if we should write the frame to disk if writer is not None: try: writer.write(frame) except Exception as e: print('Error in writing video output---> ',e)

  5. 没有减少错误,继续重复第 4 步,直到没有错误并开始安装 pod

enter image description here

,

我在使用 FirebaseRemoteConfig 7.1.0 时遇到此错误。

就我而言,上述答案不起作用。

  • pod repo remove trunk
  • 将 GitHub 路径添加到 Podfile

但是我吃完晚饭就解决了...(可能是CDN服务器造成的)

,

如果你使用的是 mac

就跑

git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master

那就去做

pod install

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。