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:

// ...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!

Note: If you find this post on class-dump useful, consider helping me write more of these posts, by supporting me on Patreon.


Now read this

SenTestingKit: How Does it Even?

Have you ever wondered what used to happen when you hit U to run your unit tests in Xcode 4.6 and prior? Here’s a step-by-step sequence of events detailing how tests are loaded and run using SenTestingKit. As I explain in Probing... Continue →