Same product name framework for different platform

I am creating iOS app bundling watchOS 2.0 app.

I refered to Lister app https://developer.apple.com/library/prerelease/watchos/samplecode/Lister/Introduction/Intro.html and they have

embedded framework `ListerKit` for each platform(iOS, watchOS and OSX).


When I archive `Lister` target, archive fails with following error.


ListerKit (watchOS)/ConnectivityListsController.swift:11:8: Module file was created for incompatible target armv7-apple-ios9.0


This is because durling archiving, `ListerKit.framework` is symlinked to same framework file.

I know Lister.app is just a sample project, but is this only my error?

Replies

Having the same problem here.


When performing a build all products are nicley separated into $CONFIGURATION$EFFECTIVE_PLATFORM_NAME (e.g. Release-watchos / Release-iphoneos).

However when archiving everything that has SKIP_INSTALL = YES ends up in

Build/Intermediates/ArchiveIntermediates/MYAPP/IntermediateBuildFilesPath/UninstalledProducts/

and the platform information is lost.


Any ideas?