I had the same issue and managed to fix it after finding out more about what's causing the issue here: https://github.com/AudioKit/AudioKit/issues/2279#issuecomment-705285458
TLDR
For completeness, the issues were that some file names were colliding with each other. In my case it was because of a Core Data model file. If that's the problem in your case too then read my answer from here: https://developer.apple.com/forums/thread/657896?answerId=639959022#639959022
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: