Diffing APIs with class-dump

In order to stay abreast on the latest changes to XCTest, I run class-dump on it whenever I download a new version of Xcode.

You can download the latest version and try it out yourself. From the command line:

$ class-dump -H /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework

This creates a list of headers found in the framework:

_XCTestDriverTestObserver.h
_XCTestCaseInterruptionException.h
// ...and so on.

This allows me to see what's changed between two versions of XCTest on a per-file basis. It's fun to see how XCTest changed between Xcode 7.0 and Xcode 7.1b2, for example.

Because the changes are split up into files, I can clearly see that there's a brand new interface named XCUIRecorder_tvOS .

Try it out on a framework you're interested in!