I was struggling with the same question, but I think I found a solution.
Looks like after adding a target, you need to go to the shared folder and under each file, go to the identity and type area and add the new target to that file's attributes. I put it down in my response to my question below.
apple forums link: https://developer.apple.com/forums/thread/666877
Hope that helps!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: