Use GNUstep for cross-platform support?

I don’t know Objective-C, but I went down a deep rabbit hole at lunch.

This track uses XCTest which is exclusive to Apple. Our test runners are Linux-based so this track doesn’t have a test runner at the moment. I wonder if we can switch over to GNUstep, which is cross-platform Objective-C and generally compatible with Apple’s implementation. Unfortunately, I couldn’t identify a currently maintained, third-party Objective-C testing framework available, so this is where things get interesting.

Catch2 is a C++ library that can run compiled .mm Objective-C++ test suites. The interesting bit is that it seems .mm files can be Objective-C code outside of Catch2’s expected macros. So we could have the students write Objective C solutions against mostly Objective C test suites. That should work for Linux and MacOS, but we might want to still provide a macOS-only local runner built on Apple’s implementation of Objective-C. We’d make it clear that GNUstep is what we use to test submitted solutions.

It seems there are two Objective-C runtimes so we’ll want the modern libobjc2, not libobjc4. I believe most existing exercises would work on the modern runtime given GNUstep tries to provide a Foundation-compatible library.