As has been mentioned in https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/docs/Building.md#apple-store-submission in order to submit the app to App Store we need to strip simulator (i386/x86_64) archs from WebRTC binary and as the very last step to do so it says:
Remove ios cordova platform if already added and add ios platform again (e.g. with a command cordova platform remove ios && cordova platform add ios) or remove and add only the plugin at your own risk.
I have a capacitor/react project in which I am using the above mentioned cordova plugin. And unfortunately you can not use cordova commands in capacitor/react environments!
How can I invoke such command in a capacitor/react project or is there any equivalent steps I can take to get the same result?
Those are cordova instructions, for Capacitor just run npx cap update ios
or npx cap sync ios