Fix Xcode.
Make sure the source file is created.
Merge topic 'target-sources-refactor' into next

e6ab38d2 Make sure the source file is created.
14d0be3a Fix Xcode.