title: Xcode 6 Code Coverage, no GDCA files "cannot open: No such file or directory"
body: <p>I am trying to generate GDCA files using gcov in XCode, and have been using <a href="http://www.bubblefoundry.com/blog/2013/11/code-coverage-revisited/" rel="nofollow noreferrer">BubbleFoundry</a> and <a href="https://stackoverflow.com/questions/19136767/generate-gcda-files-with-xcode5-ios7-simulator-and-xctest">this post</a> as guides.</p>
  
  <p>I have a separate test target created, which prints a bunch of lines when done like:</p>
  
  <pre><code>profiling: /Users/me/Library/Developer/Xcode/DerivedData/
    MyProject-HASH/Build/Intermediates/MyProject.build/Debug-iphoneos/
    MyProject Tests.build/Objects-normal/
    armv7/mysource.gcda: cannot open: No such file or directory
  </code></pre>
  
  <p>After trying the instructions in both posts I tried <a href="https://code.google.com/p/coverstory/wiki/UsingCoverstory" rel="nofollow noreferrer">setting up CoverStory</a>, which resulted in the same error message.</p>
  
  <p>My permissions in that directory:</p>
  
  <pre><code>   8 -rwxrwxr-x    1 me  staff      474 Nov  5 21:54 mysource.d
     8 -rwxrwxr-x    1 me  staff      220 Nov  5 21:54 mysource.dia
   144 -rwxrwxr-x    1 me  staff    71136 Nov  5 21:54 mysource.gcno
   296 -rwxrwxr-x    1 me  staff   148752 Nov  5 21:54 mysource.o
  </code></pre>
  
  <p>I previously tried running the permissions script from BubbleFoundy, but I still get the cannot open error (a.k.a. gdca files not written).</p>