How to Fix ‘Profiling: Invalid Magic Number’ in Xcode 4.6 When ‘Generate Test Coverage Files’ is enabled

Back to doing a bit of iOS development in Xcode, and I ran into a problem with the build tools producing a ‘profiling: invalid magic number’ error when merging the results of code coverage analysis with previous runs. Here is a way to work around the problem and save yourself from having to do a Product > Clean all the time.