web123456

CocoaPodserror[!] CDN: trunk Repo update failedtogether with[!] CDN: trunk URL couldn't be downloaded:

Issue 1: After upgrading CocoaPods to version 1.8.4, pod search reports the following error when querying the version of 1 library:

[!] CDN: trunk URL couldn’t be downloaded: /CocoaPods/Specs/master/Specs/3/9/b/PulseReactiveC/3.1.1/, error: Failed to open TCP connection to :443 (Connection refused - connect(2) for “” port 443)

Solution: Execute the pod repo remove trunk command to remove the trunk source.

Problem 2: After upgrading CocoaPods to version 1.8.4, pod install reports the following error when installing the library version:

[!] CDN: trunk Repo update failed - 26 error(s):
CDN: trunk URL couldn’t be downloaded: /CocoaPods/Specs/master/Specs/9/2/f/JCore/1.0.0/, error: Failed to open TCP connection to :443 (Connection refused - connect(2) for “” port 443)

Solution: Specify the source as master in the podfile file, because the default is trunk source,, after modifying the pod install and pod update can be operated normally, the setup method is shown in the following figure.

source '/CocoaPods/'
  • 1

在这里插入图片描述