If you have multiple targets, where two or more targets have files with the same name, check the target membership of those files in Files inspector. The error occurs when multiple instances of the equally named file have set the target membership for the same target.
我有一个错误 Command LinkStoryboards failed with a nonzero exit code,并且发现我正在使用一个不存在的故事板的引用。我最近更改了故事板文件的名称,因此将引用从“旧”名称更改为“新”名称解决了这个问题。
You may not have exactly the same error as me, but an easy way to find a more detailed explanation of the error is to:
For me the problem was that on my Podfile I didn't put use_frameworks!. I just uncomment that line, run pod install on the terminal again. And it got fixed.