Error one:
[!] The version of CocoaPods used to generate the lockfile (1.8.4) is higher than the version of the current executable (1.6.1). Incompatibility issues may arise.
Solution:
sudo gem install cocoapods
links:
stackoverflow.com/questions/5…
Error two:
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down
Solution: Refer to the below link for the solution
links: