Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7003695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:06:08+00:00 2026-05-27T21:06:08+00:00

I followed Claus’s post to set up code coverage on Xcode 4.2 with LLVM

  • 0

I followed Claus’s post to set up code coverage on Xcode 4.2 with LLVM 3.0. I’m able to see test coverage files, but they’re only for my unit test classes, not my actual project classes. I’ve tried setting Generate Test Coverage Files and Instrument Program Flow to Yes on my main target, but that didn’t help, as it failed with the following error:

fopen$UNIX2003 called from function llvm_gcda_start_file

To clarify, I don’t think that’s even the right approach – I just tried it to see if it would generate code coverage on my project classes.

At this point, I’d be happy to try anything that gets code coverage working on my app. Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:06:08+00:00Added an answer on May 27, 2026 at 9:06 pm

    You are expecting linker problem, profile_rt library uses fopen$UNIX2003 and fwrite$UNIX2003 functions instead of fopen and fwrite.

    All you need is to add the following .c file to your project:

    #include <stdio.h>
    
    FILE *fopen$UNIX2003( const char *filename, const char *mode )
    {
        return fopen(filename, mode);
    }
    
    size_t fwrite$UNIX2003( const void *a, size_t b, size_t c, FILE *d )
    {
        return fwrite(a, b, c, d);
    }
    

    This code just remaps the missing functions to standard ones.

    Note on $UNIX2003 suffix:

    I’ve found an Apple document saying:

    The UNIX™ conformance variants use the $UNIX2003 suffix.

    Important: The work for UNIX™ conformance started in Mac OS 10.4, but was not completed until 10.5. Thus, in the 10.4 versions of libSystem.dylib, many of the conforming variant symbols (with the $UNIX2003 suffix) exist. The list is not complete, and the conforming behavior of the variant symbols may not be complete, so they should be avoided.

    Because the 64-bit environment has no legacy to maintain, it was created to be UNIX™ conforming from the start, without the use of the $UNIX2003 suffix. So, for example, _fputs$UNIX2003 in 32-bit and _fputs in 64-bit will have the same conforming behavior.

    So I expect libprofile_rt to be linked against 10.4 SDK.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Followed this question about delayed_job and monit Its working on my development machine. But
I followed the RailsCasts tutorial to do a simple search with autocomplete, but it
I followed the explanation on the sIFR wiki, but can't seem to get accented
I followed Using EF Code First with an Existing Database tutorial step by step
I've followed all the instructions here here but I can't seem to find the
I followed the tutorial introducing the Play framework, but it gives me an error:
I'm trying to unit test a simple EJBModule project under NetBeans 7.1, but I
According to ($ 3.4.4) A typedef name followed by a class-key is invalid. But
I followed the instructions in this tutorial to set up Zend AMF as a
I followed the instructions here to generate the java files for Amazon's Product Advertising

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.