Using a (Swift) Framework within a Today Extension

Hello,


I am attempting to use a (Swift) Framework in a Today Extension. The Framework works in the App itself, and it is set to only use Extension Safe APIs.


If I set the Framework linking to "Required", my Extension crashes on launch. Unfortunately, all I see is a stacktrace for "dyld`__abort_with_payload", but I can't see error logged anywhere.


If I set the Framework linking to "Optional", the Extension does start, but when I try to instantiate a class from the Framework, I get a nil object.


The source code for a sample project is here: https://github.com/below/FrameworkTest/tree/Widget


Am I doing it wrong?

FIXED: In the sample, I forgot to embed the Framework. Linking it dynamically ("Optional") solves the problem

Using a (Swift) Framework within a Today Extension
 
 
Q