I am trying to implement incoming call notification. I use FirebaseMessaging.instance.getAPNSToken() to get APNS token using Firebase but keeps returning a null value. I've tried to:

  • delete the app
  • delete podfile.lock
  • flutter clean
  • flutter run

Reinstalling the app causes a semantic error error

Please help, can't seem to find the proper solution for this issue. Thank you


Solution 1: Yarokh Ansari

Just Update to Xcode version to 13+ or you can downgrade the package by running these commands cd ios

flutter clean

pod deintegrate

rm -fr Pods

rm Podfile

rm -Rf Podfile.lock

rm -Rf .symlinks

rm -Rf Flutter/Flutter.framework

rm -Rf Flutter/Flutter.podspec

pod cache clean --all

same issue https://i.stack.imgur.com/Od1or.png