I'm using Xcode 9 and Swift. I've got one workspace and one iOS project. Later I added a MacOS target (Cocoa App). When I try to reference a class from the MacOS target to the iOS target, the compiler says:
Use of unresolved identifier.
How do I get Xcode to allow me to share Swift classes from target to another?