frida / frida-swift-bridge

Frida's finally getting Swifty
Apache License 2.0
125 stars 15 forks source link

Error: missing argument #13

Open In3tinct opened 11 months ago

In3tinct commented 11 months ago

Hey there, Great work. Thanks for the swift bridge. i'm trying to intercept a very basic function and somehow get missing argument, i matched the signature with other interceptors. Am i missing anything?

Here is my js file content.

Swift.Interceptor.attach(Swift.classes['SceneDelegate']['scene'], {
       onEnter: function (args) {
           console.log("Test");
     },
     onLeave: function(retval) {
          console.log("Hey");
    }
  });
In3tinct commented 11 months ago

I'm basically trying to intercept a function which is used for handling custom links in SceneDelegate.

On printing the function this is what i get.

i also tried intercepting using PTR address, i get "Error: Type not found: __C.UIScene".