Added a custom framework, now Swift can't unarchive data
问题 I have a pretty trivial Swift app that has a model class named DemoNote . An array of DemoNote instances is read/written via keyed archiving. This worked fine while DemoNote was included in the app. But then I moved DemoNote.swift to a new custom framework called DemoSharedCode . Aside from making sure Xcode was using the framework in the app target, I made sure to Mark DemoNote and its vars and methods as public so they'd be visible outside of the framework Add import DemoSharedCode to any