Fix check script.
Fix Xcode object handling.
Merge topic 'target-sources-refactor' into next

be3c1b81 Fix Xcode object handling.
6efc5a37 Fix check script.