Being inspired by the solution to this question I tried using the same approach with XCTest.
I\'ve set \'Generate Test Coverage Files=YES\' and \'Instrument Program
- (void)applicationWillTerminate:(UIApplication*)application must be defined in your application delegate, not in the observer class.
- (void)applicationWillTerminate:(UIApplication*)application
I didn't have any library problems. "-lgov" is not needed and you don't have to add any libraries. Coverage is supported directly by LLVM compiler.