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

$methods array is empty when source code has methods #19

Open
erosthorne1 opened this issue May 28, 2024 · 0 comments
Open

$methods array is empty when source code has methods #19

erosthorne1 opened this issue May 28, 2024 · 0 comments

Comments

@erosthorne1
Copy link

Hello there, i'm playing around with frida-swift-bridge trying to call swift methods.

As an example with the following source code:

class URL {

    init?(urlString: String) {
        guard let query = URLComponents(string: urlString)?.queryItems else {
            return nil
        }
    }

    private static func decode(_ secret: String?) -> String? {
        return secret
    }
}

But when I try to list the methods I get and empty methods list:

[iPhone::test ]-> Swift.modules.test.classes.URL
{
    "$conformances": [],
    "$fields": [],
    "$methods": []
}

How could I initialize a URL with a string in Frida?
How could I call the decode method on the class instance after?

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