title: Swift3 - Background Fetch Crash on Debug
body: <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
      print(UIApplicationBackgroundFetchIntervalMinimum)
      UIApplication.shared.setMinimumBackgroundFetchInterval(UIApplicationBackgroundFetchIntervalMinimum)
      return true
  }
  
  func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) {
      completionHandler(.newData)
  }
  </code></pre>
  
  <p>This is my code and when I Debug in XCode > Simulate background fetch my app crash without reason. I activated in Capabilities>Background modes>Background fetch... any ideas?</p>
  
  <p>It crash only on iPhone in simulator I don't have problems.</p>