If i run the extension or app from xcode, they both work fine, but if i archive, create an IPA file and install it via itunes, then the widget is always "Unable to load" (but the app itself still works fine).
I noticed that if i turn "always embed swift standard libraries" on for the widget target, then the widget installed with the IPA does work fine. BUT doing this means you can't submit it to the app store ("The bundle at … contains disallowed file 'Frameworks'")
Any ideas on how to find the problem? I can't see how the widget is crashing because it doesn't crash in xcode