Linking dual (iphoneos and watchos) frameworks with same product name

I recently had to duplicate my own frameworks to be able to link them from the native watchOS 2 extension, because the platform is different. So for every framework X I have an X-watchos counterpart.

Everything works fine in the simulator and when building directly to my devices, and it wasn't until I tried to archive that I got this linking error:


(Link to the picture since they don't seem to be showing: http://i.stack.imgur.com/PcvqP.png)


I ran `lipo -i` on the built watchOS framework and sure enough, its archs are `arm7` and `arm64` instead of `armv7k`.

When I looked further into the built directory I noticed this:


(Link to the picture since they don't seem to be showing: http://i.stack.imgur.com/OSmFu.png


Both versions are symlinks to the same file, and because the have the same product name, they're being overridden. I could make them have different names, but that would make `import`ing them really cumbersome.


Is this an Xcode bug? How can I configure my targets so that "sibling" frameworks share their product name, but they can be linked separately?


This is running Xcode 7 beta 5.