Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm not familiar with Frida syntax, but Swift does not use self and cmd like obj-c does, because that's static not dynamic method invocation. The Swift function first two integer(or pointer) args would be x0 and x1 registers in arm64.