Xcode warning "profiling: invalid magic number" Xcode warning "profiling: invalid magic number" xcode xcode

Xcode warning "profiling: invalid magic number"


After some googling I found this LLVM source file GCDAProfiling.c

From what I can see there, the error is printed during the code coverage generation when the profiler is attempting to merge two files but one of them has a different version (= magic number).

I did a full Clean (it also removes all gcda files) and the problem went away.


Ended up having to delete the appropriate DerivedData folder for my application -

~/Library/Developer/Xcode/DerivedData/#application-name#

But that ended up clearing everything up.