Error installing Bugly

created at 01-02-2022 views: 10

Pod install error when installing bugly

Pod install error when installing bugly

[!] Error installing Bugly
[!] /usr/bin/curl -f -L -o /var/folders/6l/t2dwpz4n27v8954sbchm7rb80000gn/T/d20211230-26349-1xx9psc/file.zip https://raw.githubusercontent.com/BuglyDevTeam/Bugly-iOS/master/release/Bugly-2.5.2.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.11.2 cocoapods-downloader/1.5.1'

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

Solution

Query the IP address of raw.githubusercontent.com and add the hosts file.

detailed steps

  1. Open the IP query website: https://www.ipaddress.com
  2. Enter raw.githubusercontent.com to query its IP address
  3. Go to the folder /etc and find the hosts file
  4. The hosts file is locked, so copy a copy to the desktop
  5. Modify hosts, add just ip and raw.githubusercontent.com at the bottom (for example: 199.232.68.133 raw.githubusercontent.com)
  6. Save, drag the edited file to the /etc directory, replace the previous file
  7. Re-execute the pod install command.

Error installing CocoaLumberjack

I encountered a similar error afterwards

[!] Error installing CocoaLumberjack
[!] /usr/bin/git clone https://github.com/CocoaLumberjack/CocoaLumberjack.git /var/folders/6l/t2dwpz4n27v8954sbchm7rb80000gn/T/d20211230-26547-5q58kr --template= --single-branch --depth 1 --branch 3.6.1

Cloning into '/var/folders/6l/t2dwpz4n27v8954sbchm7rb80000gn/T/d20211230-26547-5q58kr'...
fatal: unable to access 'https://github.com/CocoaLumberjack/CocoaLumberjack.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 

solution

I did some search, I wanted to find a reliable one to try first. I had a whim, and pod install without modifying it. Will it be good if I try a few times, then I tried it, hey, it’s really work, just go straight to it

I have encountered it a few times later, but the old method is still the old way. Try a few more times.

Error installing RegexKitLite

new issue

[!] Error installing RegexKitLite
[!] Unable to locate the executable `svn`

reason

In the new computer, pod install in the terminal Some old libraries, such as RegexKitLite, will report an error of Unable to locate the executable'svn', because svn is not installed in the new computer, and xcode does not come with it svn.

solution

Install svn and then pod install step:

  1. Open the terminal and enter brew install svn
  2. If Homebrew is not installed, copy the content below and execute the terminal to install
created at:01-02-2022
edited at: 01-02-2022: