Is there a way, maybe a script or API to invoke a method in an IOS application without manually triggering it on the application itself and also replacing the values? The goal for this is to make sure that the query from a server will return the values that I want.
Example: If the value 1 is sent to the server, it return will back "True", but I want the return value to be "False", so I need to invoke the method that queries the server and change the argument value to 0. Can frida force activate a method without interaction or is there another tool that can perform this?
If you want to intercept all function calls in order to alter the return value, read up on the basic interception functionality using Interceptor.attach
If you want to instantiate your own or an existing object, look at the following examples: https://github.com/frida/frida/issues/567#issuecomment-406897414