jonreid / XcodeCoverage

Code coverage for Xcode projects (Objective-C only)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.gcda is not generated

emartynov opened this issue · comments

I don't know if it issue of XcodeCoverage or Xcode itself.

I have target with name 'app develop'. If I run test I don't see .gcda files generated. If I run tests for 'app' target everything works.

Except of renaming target are there solutions?

So you have a target with a space in the name? Always fun with scripts. Try with the latest XcodeCoverage to see if it fixes things.

Hi John,

I've tried the last one and it still has same issue.
Is it something in XcodeCoverage scripts or Xcode instrumentations itself?

Ok, after some investigation I found the issue.

I have two target in project app and app-develop.
Target app-develop produces app develop binary.
Tests are pointed to app-develop.

I added export environment variables to both targets looks like app was running last and replaced folder where coverage files were generated. As soon as I removed script running from this target it started working.

Issue might be closed.

Glad you found the problem!