I found this to be a red herring -- the actual problem was a separate compilation error. (Well actually... multiple errors.) Fixing those errors resolved the swiftmodule etc.!