Apple LLVM 6.0 Warning: profile data may be out of date

The Problem:
After building for archive I got 8 warnings saying my ‘profile data may be out of date’.

Screen Shot 2014-12-16 at 1.26.15 PM

I have no clue what this meant, so I googled the problem. I only ended up with some search results such as these:

That last one was good since the commit message actually described the problem:
a warning that triggers when profile data doesn’t match for the source that’s being compiled with -fprofile-instr-use=“. Now I know this is about PGO, which related to XCode’s Generate Optimization Profile. I had deleted the build folder earlier and this caused the warnings.

Note the importance of always having descriptive commit messages.

How To Fix:
Here, Apple described how to use the Optimization Profile and how to enable it. I don’t want to use the profile I generated and corrupted, so I’m going to properly delete it and disable it. You can always regenerate the profile to fix this problem.

  1. Delete the group folder ‘OptimizationProfiles’ in your project
  2. Set the ‘Use Optimization Profile’ for the release to ‘No’
  3. Build again


Leave a Reply

Your email address will not be published. Required fields are marked *