xcconfigs
xcconfigs copied to clipboard
Watch Extension using the same framework as the host iOS App
I have an iOS app with an embedded WatchOS App. Both require the same framework 'VDCore.framework'. I configured XCode using the configuration outlined here but always get this error when compiling Watch Extension:
...Reader.xcodeproj Building for watchOS, but the linked and embedded framework 'VDCore.framework' is building for iOS. You may need to configure 'VDCore.framework' to build for watchOS.
I'm wondering if this technique works for this situation. It appears to me that because they use the same framework name, XCode is getting confused. Everything worked when I had separate targets: 'VDCore.framework' for iOS and 'VDCoreWatch.framework' for WatchOS.
Thanks!