Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Code Coverage and fopen$UNIX2003

I am facing what seems to be a pretty wide spread issue : when I activate code coverage in Xcode (4.2.1) with Lion it shows the following error :

Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
fopen$UNIX2003 called from function llvm_gcda_start_file

I followed the workaround described here and added a file to my test target with a mapping for the fopen function but it won't work for me. With the new C file, I get a lot of Parse and Semantic issues, as if it was completly messing the compilator up.

Is there a specific config/compiler option I am missing ? How exactly should I add the new file ?

like image 777
Such Avatar asked Feb 21 '26 22:02

Such


1 Answers

Actually the problem was fixed when I renamed the .c file in a .m file... I don't know if it could be an issue linked to ARC for instance.

like image 92
Such Avatar answered Feb 24 '26 13:02

Such