CDN : l'erreur d'échec de la mise à jour du dépôt de tronc se produit

Après avoir exécuté l'installation du pod, j'ai l'erreur suivante :

[!] CDN: trunk Repo update failed - 4 error(s):
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/c/7/9/Reachability/3.0.0/Reachability.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/c/7/9/Reachability/3.1.0/Reachability.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/c/7/9/Reachability/3.1.1/Reachability.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/c/7/9/Reachability/3.2/Reachability.podspec.json Response: Timeout was reached

Solution:

Remplacez la source cdn par la source 'https://github.com/CocoaPods/Specs.git'

marcher:

1. Ajoutez la source 'https://github.com/CocoaPods/Specs.git' en haut du podfile

2. Exécutez pod repo remove trunk sous le terminal pour supprimer le tronc

3. Re-installation de pod

Guess you like

Origin blog.csdn.net/lqw200931116/article/details/125200698