Faced same error on stage MergeSwiftModule
Did you try change the project setting SWIFT_COMPILATION_MODE from Incremental to the Whole Module?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: