I am trying to send a \"Class\" to my Watchkit extension but I get this error.
* Terminating app due to uncaught exception \'NSInvalidUna
I had to add the following lines after setting up the framework to make the NSKeyedUnarchiver work properly.
Before unarchiving:
NSKeyedUnarchiver.setClass(YourClassName.self, forClassName: "YourClassName")
Before archiving:
NSKeyedArchiver.setClassName("YourClassName", forClass: YourClassName.self)