Error
Error output from CocoaPods:
Cloning into '/var/folders/6s/7sk206y51kzdp8j2x8n9m2j00000gn/T/d20220728-31697-ijlopm'...
fatal: unable to access 'https://github.com/zhangao0086/DKImagePickerController.git/': Failed to connect to github.com port 443 after 75020 ms: Operation timed out
Error running pod install
Error launching application on iPhone 11.
Reason
There is problem with Github connection. It generally due to the network environment in some countries.
Solution
Modify your hosts file on Mac.
Find this file '/etc/hosts' in Finder.
Add the following lines in hosts file.
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
Or you can unset the proxy with this command.
git config --global --unset http.proxy