문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top