I'm trying to create 2 targets with the same underlying files:
LoggingSharedFramework - targets iOS
LoggingSharedWatchFramework - targets watchOS
The files are stored in $(PROJECT_DIR)/LoggingSharedFramework
I can get both of these to build independently, but when I include LoggingSharedWatchFramework into a watchOS project, there are problems finding headers. I've messed around with the umbrella header and had some incremental successes, for example, duplicating the umbrella header LoggingSharedFramework.h as LoggingSharedWatchFramework.h and including the watch-specific version in the watch project only, but there are still problems finding other headers.
My hunch is that the target name has to be the same as the directory name - is this correct? If not, is there some trick to using a framework in both iOS and watchOS other than duplicating the framework and changing the name?