I would suggest combining the "AppleLib" and "LinuxLib" targets into one "LibX" target which uses conditionals (e.g. #if os(Linux)
). As long as clients don't need to directly call API of CoreLib
which seems like they should not if it is truly an implementation detail, only import LibX
will be needed in client code.
1 Like