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
Post
Replies
Boosts
Views
Activity
This is great. Why hasn't Apple built this in Xcode? Thanks a ton.