{"id":3166,"url":"https://github.com/facebook/idb","last_synced_at":"2025-05-14T08:05:13.865Z","repository":{"id":37353126,"uuid":"41870517","full_name":"facebook/idb","owner":"facebook","description":"idb is a flexible command line interface for automating iOS simulators and devices","archived":false,"fork":false,"pushed_at":"2025-04-21T01:14:20.000Z","size":99058,"stargazers_count":4656,"open_issues_count":187,"forks_count":440,"subscribers_count":124,"default_branch":"main","last_synced_at":"2025-05-07T07:59:53.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fbidb.io","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facebook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2015-09-03T16:25:17.000Z","updated_at":"2025-05-07T07:19:26.000Z","dependencies_parsed_at":"2024-08-20T17:31:18.456Z","dependency_job_id":"f7a0e4af-652c-43ba-bbda-bb587c568fb5","html_url":"https://github.com/facebook/idb","commit_stats":{"total_commits":5187,"total_committers":195,"mean_commits":26.6,"dds":0.28841334104492,"last_synced_commit":"1b8aa4e10a59f1f39827f4ffa51bc067cf5a52da"},"previous_names":["facebook/fbsimulatorcontrol"],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fidb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fidb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fidb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Fidb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facebook","download_url":"https://codeload.github.com/facebook/idb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101588,"owners_count":22014907,"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-01-05T20:16:33.301Z","updated_at":"2025-05-14T08:05:13.819Z","avatar_url":"https://github.com/facebook.png","language":"Objective-C","funding_links":[],"categories":["Tools","\u003ca id=\"58cd9084afafd3cd293564c1d615dd7f\"\u003e\u003c/a\u003e工具","Objective-C","HarmonyOS","Objective-C  Stars 1000以内排名整理","功能测试","Weapons","Swift"],"sub_categories":["Web View","\u003ca id=\"d0108e91e6863289f89084ff09df39d0\"\u003e\u003c/a\u003e新添加的","Windows Manager","命令行工具","iOS"],"readme":"![idb logo](website/static/img/idb_logo.jpg)\n\n[![Discord](https://img.shields.io/discord/770978552698896394?style=flat-square)](https://discord.gg/SF26Yqw)\n\nThe \"iOS Development Bridge\" or `idb`, is a command line interface for automating iOS Simulators and Devices. It has three main principles:\n\n* *Remote Automation*: `idb` is composed of a \"companion\" that runs on macOS and a python client that can run anywhere. This enables scenarios such as a \"Device Lab\" within a Data Center or fanning out shards of test executions to a large pool of iOS Simulators.\n* *Simple Primitives*: `idb` exposes granular commands so that sophisticated workflows can be sequenced on top of them. This means you can use `idb` from an IDE or build an automated testing scenario that isn't feasible with default tooling. All of these primitives aim to be consistent across iOS versions and between iOS Simulators and iOS Devices. All the primitives are exposed over a cli, so that it's easy to use for both humans and automation.\n* *Exposing missing functionality*: Xcode has a number of features that aren't available outside its user interface. `idb` leverages many of Private Frameworks that are used by Xcode, so that these features can be in GUI-less automated scenarios.\n\n`idb` is built on top the `FBSimulatorControl` and `FBDeviceControl` macOS Frameworks, contained within this repository. These Frameworks can be used independently of `idb`, however `idb` is likely to provide the simplest install and the most sensible defaults for most users.\n\nWe've given a talk about `idb` at F8, so that you can learn more about what `idb` is and why we built it. A [recording of the talk is available here](https://developers.facebook.com/videos/2019/reliable-code-at-scale/).\n\n## Quick Start\n\n`idb` is made up of 2 major components, each of which needs to be installed separately.\n\n### `idb` companion\n\nEach target (simulator/device) will have a companion process attached allowing `idb` to communicate remotely.\n\nThe `idb` companion can be installed via brew or built from [source](https://github.com/facebook/idb)\n\n```\nbrew tap facebook/fb\nbrew install idb-companion\n```\nNote: Instructions on how to install brew can be found [here](https://brew.sh)\n\n### `idb` client\n\nA cli tool and python client is provided to interact with `idb`.\n\nIt can be installed via pip:\n\n```\npip3.6 install fb-idb\n```\nNote: The idb client requires python 3.6 or greater to be installed.\n\nPlease refer to [fbidb.io](https://www.fbidb.io/) for detailed installation instructions and a guided tour of idb.\n\nOnce installed, just run the list-targets command which will show you all the simulators installed on your system:\n\n```\n$ idb list-targets\n...\niPhone X | 569C0F94-5D53-40D2-AF8F-F4AA5BAA7D5E | Shutdown | simulator | iOS 12.2 | x86_64 | No Companion Connected\niPhone Xs | 2A1C6A5A-0C67-46FD-B3F5-3CB42FFB38B5 | Shutdown | simulator | iOS 12.2 | x86_64 | No Companion Connected\niPhone Xs Max | D3CF178F-EF61-4CD3-BB3B-F5ECAD246310 | Shutdown | simulator | iOS 12.2 | x86_64 | No Companion Connected\niPhone Xʀ | 74064851-4B98-473A-8110-225202BB86F6 | Shutdown | simulator | iOS 12.2 | x86_64 | No Companion Connected\n...\n```\n\n`list-apps` will show you all the apps installed in a simulator:\n\n```\n$ idb list-apps --udid 74064851-4B98-473A-8110-225202BB86F6\ncom.apple.Maps | Maps | system | x86_64 | Not running | Not Debuggable\ncom.apple.MobileSMS | MobileSMS | system | x86_64 | Not running | Not Debuggable\ncom.apple.mobileslideshow | MobileSlideShow | system | x86_64 | Not running | Not Debuggable\ncom.apple.mobilesafari | MobileSafari | system | x86_64 | Not running | Not Debuggable\n```\n\n`launch` will launch an application:\n\n```\n$ idb launch com.apple.mobilesafari\n```\n\nHead over [to the main documentation](https://www.fbidb.io) for more details on what you can do with idb and the full list of commands. There are also instructions on how to [make changes to `idb` including building it from source](https://www.fbidb.io/docs/development).\n\n## Documentation\n\nFind the full documentation for this project at [fbidb.io](https://www.fbidb.io/)\n\nWe also have a [public Discord Server that you can join](https://discord.gg/SF26Yqw)\n\n## Contributing\n\nWe've released `idb` because it's a big part of how we scale iOS automation at Facebook. We hope that others will be able to benefit from the project where they may have needs that aren't currently serviced by the standard Xcode toolchain.\n\n## Code of Conduct\n\nFacebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.fb.com/codeofconduct) so that you can understand what actions will and will not be tolerated.\n\n## Contributing Guide\n\nRead our [contributing guide](.github/CONTRIBUTING.md) to learn about our development process.\n\n## License\n\n[`idb` is MIT-licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebook%2Fidb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacebook%2Fidb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebook%2Fidb/lists"}