Run two instances of the same application in Mac OS

Recently I came across a situation where I needed to run two instances of XCode application to compare two different versions of the project that I’m working.

Once a XCode application is opened and if you want to bring up another instance, you can’t do it by simply tapping on the XCode icon in the shortcut bar/via Applications folder.

You have to execute the following simple command using the Terminal.

open -n /Applications/