How to run a task after completing iOS build?

I added an after_build hook and it works in Android. But it does not work in iOS since iOS build does not use Cordova commands to build the ipa.
I want to run appcenter-cli commands to upload the builds to appcenter.
Anyone knows how to do it?

Thanks

In xcode, if you click on your target then go to the build phases tab, you can add custom scripts to run when building. You might be able to use one of those to do what you’re trying to do