title: Cannot find protocol declaration for 'UNUserNotificationCenterDelegate' in -Swift.h file
body: <p>I tried to convert my objective C AppDelegate to Swift AppDelegate. So I deleted the main.m file and Converted all the AppDelegate code to swift. I tried to run the project, then this error occurs.</p>
  
  <blockquote>
    <p>Cannot find protocol declaration for
    'UNUserNotificationCenterDelegate'</p>
  </blockquote>
  
  <p>In the -Swift.h file they generate, this is the delegate they showed</p>
  
  <pre><code>- (void)userNotificationCenter:(UNUserNotificationCenter * _Nonnull)center willPresentNotification:(UNNotification * _Nonnull)notification withCompletionHandler:(void (^ _Nonnull)(UNNotificationPresentationOptions))completionHandler SWIFT_AVAILABILITY(ios,introduced=10.0);
  </code></pre>
  
  <p>This is how I have written </p>
  
  <pre><code>@available(iOS 10.0, *)
  func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -&gt; Void) {
      handleNotification(notification.request.content.userInfo)
  }
  </code></pre>
  
  <p>Please help me get what is the issue am facing. </p>
  
  <p>I tried, cleaning, restarting Xcode and restarting my Mac. Am using Swift 3.2.</p>
  
  <p>This is my -Swift.h file error
  <a href="https://i.stack.imgur.com/MoFBP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MoFBP.png" alt="enter image description here"></a></p>
  
  <p>If I comment the delegates, there are no errors. </p>