title: FCM - Cannot find type 'MessagingRemoteMessage' in scope
body: <p>This is the code I use in my AppDelegate in order to receive messages in iOS:</p>
  <pre><code>extension AppDelegate : MessagingDelegate {
    // [START refresh_token]
    func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) {
      print(&quot;Firebase registration token: \(fcmToken)&quot;)
      
      let dataDict:[String: String?] = [&quot;token&quot;: fcmToken]
      NotificationCenter.default.post(name: Notification.Name(&quot;FCMToken&quot;), object: nil, userInfo: dataDict)
      // Note: This callback is fired at each app startup and whenever a new token is generated.
    }
  
    func messaging(_ messaging: Messaging, didReceive remoteMessage: MessagingRemoteMessage) {
      print(&quot;Received data message: \(remoteMessage.appData)&quot;)
    }
  }
  </code></pre>
  <p>I have recently started getting this error message after compiling:</p>
  <pre><code>Cannot find type 'MessagingRemoteMessage' in scope
  </code></pre>
  <p>which makes the build fail.</p>
  <p>What should I do in order to fix this?</p>