This happens to me when I try to compile my app in XCode, in android it runs perfect, but there, it fails with that, this is the function that I use directly from Firebase cloud.
func messaging(_ messaging: Messaging, didReceiveRegistrationToken
fcmToken: String) {
print("Firebase registration token: \(fcmToken)")
let dataDict:[String: String] = ["token": fcmToken]
NotificationCenter.default.post(name: Notification.Name("FCMToken"),
object: nil, userInfo: dataDict)
// TODO: If necessary send token to application server.
// Note: This callback is fired at each app startup and whenever a
new
token is generated.
}
This is where the error mentioned in the title of my question marks me, if someone has happened to him and he can give me a hand, since I have not seen a similar error here.