I am pretty sure that almost everything in the xcode project is stored in text files, so you can use standard diff tools to compare projects. This, of course, excludes resources such as images, audio, etc.
FileMerge is an application that comes with Apple Developer tools. It differs and merges. It can be launched through the terminal using the opendiff .
source share