I\'m trying to build an extension project and Xcode keeps throwing the error in subject.
For xCode v12 I solved that problem with one click:
TARGETS -> Build Phases -> Embed App Extensions
and check: Copy only when installing
Copy only when installing