Fix test with xcode.
Merge topic 'target-sources-refactor' into next

7d3a5252 Fix test with xcode.