Xcode warning "profiling: invalid magic number"
Asked Answered
I

2

25

I just installed Xcode 4.6. When I run my OCUnit tests now, I get multiple lines with "profiling: invalid magic number" in the output window after all tests have finished. I'm pretty sure that Xcode 4.5.2 didn't give me that output.

Does anybody know what this line means?

Infant answered 29/1, 2013 at 14:41 Comment(0)
E
40

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.

Electrodialysis answered 30/1, 2013 at 14:14 Comment(1)
I find that cleaning the build folder clears the errors for the first run through the tests, but the errors return for subsequent runs of the unit tests.Tytybald
Y
1

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.

Yellowish answered 4/2, 2013 at 19:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.