4/11/2016

"no such module" error with WatchOS 2

I encountered "no such module" error after migrating to WatchOS 2.



Watch Extension is no longer included in parent app, so it can't refer to frameworks linked to its parent.

I needed to add new Watch Framework target to the original framework project.


Added necessary sources to new framework.


Then linked it to Watch Extension.


Done! 😄

*Watch framework would fail to compile if its sources contain classes not supported by WatchKit.

[Xcode Version 7.3 (7D175)]

No comments:

Post a Comment