Same for me. But a smarter approach is to add this line to your AppDelegate so you don't run all that config code in previews:
**guard ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] != "1" else { return true }
**
Credit
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: