1Install xcode: npm i xcode --save-dev
2Edit the plugin file locally plugins/cordova-plugin-firebase/scripts/ios/helper.js
3Add var xcode = require("xcode"); on top
4Then in the same file, just remove this line var xcode = context.requireCordovaModule("xcode");. You must find two occurrence of this line.