Reply to I have added Widgetkit to my app. But now crash on iOS 13 when the app starts Marking as optional worked for me as well https://stackoverflow.com/questions/38536956/conditionally-import-a-framework-such-as-speech-based-on-ios-version-in-swift/38538861 Programming Languages Swift Sep ’20