{"id":13844971,"url":"https://github.com/frida/frida-swift","last_synced_at":"2025-06-26T13:37:04.170Z","repository":{"id":53098162,"uuid":"55373496","full_name":"frida/frida-swift","owner":"frida","description":"Frida Swift bindings","archived":false,"fork":false,"pushed_at":"2025-06-23T16:44:35.000Z","size":209,"stargazers_count":155,"open_issues_count":4,"forks_count":38,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-06-23T17:44:50.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frida.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"frida"}},"created_at":"2016-04-03T23:05:12.000Z","updated_at":"2025-06-23T16:44:39.000Z","dependencies_parsed_at":"2025-01-13T22:24:06.214Z","dependency_job_id":"a2c935d8-1feb-4291-b9aa-25de05f64204","html_url":"https://github.com/frida/frida-swift","commit_stats":null,"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"purl":"pkg:github/frida/frida-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frida%2Ffrida-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frida%2Ffrida-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frida%2Ffrida-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frida%2Ffrida-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frida","download_url":"https://codeload.github.com/frida/frida-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frida%2Ffrida-swift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262077174,"owners_count":23255134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:03:04.510Z","updated_at":"2025-06-26T13:37:04.145Z","avatar_url":"https://github.com/frida.png","language":"Swift","funding_links":["https://github.com/sponsors/frida"],"categories":["Swift (22)","Swift"],"sub_categories":[],"readme":"# frida-swift\n\nSwift bindings for [Frida](https://frida.re).\n\n## Install\n\n- Run:\n\n    make\n\n- Copy `build/Frida/Frida.framework` into your project, or run `make install`\n  if you need a shared installation. In the latter case you may want to first\n  run `./configure` with a suitable `--prefix`.\n\n## Example\n\n```swift\nfunc testFullCycle() {\n    let pid: UInt = 20854\n\n    let expectation = self.expectation(description: \"Got message from script\")\n\n    class TestDelegate : ScriptDelegate {\n        let expectation: XCTestExpectation\n        var messages: [Any] = []\n\n        init(expectation: XCTestExpectation) {\n            self.expectation = expectation\n        }\n\n        func scriptDestroyed(_: Script) {\n            print(\"destroyed\")\n        }\n\n        func script(_: Script, didReceiveMessage message: Any, withData data: Data?) {\n            print(\"didReceiveMessage\")\n            messages.append(message)\n            if messages.count == 2 {\n                expectation.fulfill()\n            }\n        }\n    }\n    let delegate = TestDelegate(expectation: expectation)\n\n    let manager = DeviceManager()\n    var script: Script? = nil\n    manager.enumerateDevices { result in\n        let devices = try! result()\n        let localDevice = devices.filter { $0.kind == Device.Kind.local }.first!\n        localDevice.attach(to: pid) { result in\n            let session = try! result()\n            session.createScript(\"console.log(\\\"hello\\\"); send(1337);\") { result in\n                let s = try! result()\n                s.delegate = delegate\n                s.load() { result in\n                    _ = try! result()\n                    print(\"Script loaded\")\n                }\n                script = s\n            }\n        }\n    }\n\n    self.waitForExpectations(timeout: 5.0, handler: nil)\n    print(\"Done with script \\(script), messages: \\(delegate.messages)\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrida%2Ffrida-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrida%2Ffrida-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrida%2Ffrida-swift/lists"}