“pod init” creates error that says “You need at least git version 1.8.5 to use CocoaPods”

It needs to set your command line tool version, in your Xcode (Preferences). You can download latest command line tool from Apple Download Portal, if you have paid apple developer account/id. Here are current stable and beta Xcode Tools and supporting command line tool download links. (Ensure you’re logged in using premium developer account on …

Read more

What is a faster alternative to Python’s http.server (or SimpleHTTPServer)?

http-server for node.js is very convenient, and is a lot faster than Python’s SimpleHTTPServer. This is primarily because it uses asynchronous IO for concurrent handling of requests, instead of serialising requests. Installation Install node.js if you haven’t already. Then use the node package manager (npm) to install the package, using the -g option to install …

Read more

xcode-select active developer directory error

This problem happens when xcode-select developer directory was pointing to /Library/Developer/CommandLineTools when a full regular Xcode was required (happens when CommandLineTools are installed after Xcode) Solution: Install Xcode (get it from https://appstore.com/mac/apple/xcode) if you don’t have it yet. Accept the Terms and Conditions. Ensure Xcode app is in the /Applications directory (NOT /Users/{user}/Applications). Point xcode-select …

Read more