Has anyone been able to share their Static Library or Framework between both the phone app & the watch os2 extension? If so, please let me know.
Under new target (iOS target > Framework & Library), I've tried to use either the Cocoa Touch Framework or the Cocoa Touch Static Library. I think the latter is more appropriate since the description indicates that the former uses UIKit (and you don't get UIKit in the watch extension). I'm able to import & use my static library in my phone app (via the main view controller). I am unable to use my static library in my watch InterfaceController since the import gives me "file not found" error. I'm getting this "file not found" error, even though I've added my static library in the Target Dependencies, Link Binary With Libraries, and Other Linker Flags.
Is there a way to share libs/code between the Watch OS 2 extension & the phone app? If so, how & what is the best way? Thanks!
P.S. Not sure what's the difference between the 'Framework & Library' targets under iOS versus under watchOS.