Problem description

CDN: Trunk URL cried’t be downloaded ‘ https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/3/2/5/FlipperKit/0.30.1/FlipperKit.podspec.json Response: Couldn’t connect to server

Try to solve

In Google, the root cause of the problem, or network problems, many articles that is need to replace cocoaPods CDN source with official source source ‘https://github.com/CocoaPods/Specs.git’ but after replacing the source, After ping github.com, I found that github.com timed out. Then I added github IP mapping to the hosts file, but still failed to pull resources. The ping ping raw.githubusercontent.com found less than, then find the IP address of the raw.githubusercontent.com, join the host, the smooth installation;

The summary processing steps are as follows:

  1. Do not replace the CDN source
  2. On a MAC system,sudo vim /private/etc/hostsAdd to the hosts file* * * * * * (IP address lookup) raw.githubusercontent.comThe mapping of
  3. Go back to the ios directory, execute pod install can be successful domain name to IP address to map, you can find websites on the Internet to convert hi, after a long time, finally solved