I already answered a similar question here:
Federico Navarrete's answer to What are the use cases for RPA on mobile devices?
Now, coming back to iOS, there is not easy way that Apple would allow you to do it.
I'm sure if you try emulating iOS anywhere, you would be sued since it's not allowed to use its emulators for non-development purposes and I don't think it's feasible to do it from physical devices even if the future, you had access to the newest RPAs that might multi-platform because they would still consume high amount of resources.
I don't say it's impossible, but before you would be allow to automate things in iOS, Apple needs to provide alternative ways to access to its devices without breaking the law.