Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: missing argument #13

Open
In3tinct opened this issue Oct 5, 2023 · 1 comment
Open

Error: missing argument #13

In3tinct opened this issue Oct 5, 2023 · 1 comment

Comments

@In3tinct
Copy link

In3tinct commented Oct 5, 2023

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
Copy link
Author

In3tinct commented Oct 5, 2023

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.

  • Method name hackingwithswift.SceneDelegate.scene(_: __C.UIScene, openURLContexts: Swift.Set<__C.UIOpenURLContext>) -> ()

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant