More fiddling.
It seems that the sample transcript at the beginning of the metadata source file was confusing Xcode’s code parser.