Last week I got the XCTest details sorted out and ended up with an observer class that ends up quite like the iOS AppDelegate does for app start and stop events but for test bundle events.
The big trick is figuring out how to use NSPrincipalClass in the info.plist.
What I use this for is to trigger loggers when test bundle events happen and through an external (hacky) script automatically run a heap dump and generate a leaks memgraph automatically when out iOS tests run.
If this would be of use to anyone, I can send it your way or put it up on GitHub.