{"id":16697724,"url":"https://github.com/leonatan/lnviewhierarchydumper","last_synced_at":"2025-03-23T14:31:44.523Z","repository":{"id":63916561,"uuid":"276949234","full_name":"LeoNatan/LNViewHierarchyDumper","owner":"LeoNatan","description":"Dump your view hierarchies programmatically to Xcode 12 and above compatible view hierarchy file archives.","archived":false,"fork":false,"pushed_at":"2024-11-21T16:43:26.000Z","size":832,"stargazers_count":29,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T21:17:00.312Z","etag":null,"topics":["ios","macos","swift","xcode"],"latest_commit_sha":null,"homepage":"","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/LeoNatan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"LeoNatan","custom":["paypal.me/LeoNatan25"]}},"created_at":"2020-07-03T17:01:34.000Z","updated_at":"2025-03-14T15:41:47.000Z","dependencies_parsed_at":"2024-01-18T03:50:19.059Z","dependency_job_id":"19e5ca0c-6247-4f8c-8db4-e35c5118b9fe","html_url":"https://github.com/LeoNatan/LNViewHierarchyDumper","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.5,"last_synced_commit":"a16488b5186b07bbf64beee06eeeffac3e16ed81"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoNatan%2FLNViewHierarchyDumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoNatan%2FLNViewHierarchyDumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoNatan%2FLNViewHierarchyDumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoNatan%2FLNViewHierarchyDumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeoNatan","download_url":"https://codeload.github.com/LeoNatan/LNViewHierarchyDumper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245115992,"owners_count":20563264,"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":["ios","macos","swift","xcode"],"created_at":"2024-10-12T17:49:01.276Z","updated_at":"2025-03-23T14:31:44.507Z","avatar_url":"https://github.com/LeoNatan.png","language":"Objective-C","funding_links":["https://github.com/sponsors/LeoNatan","paypal.me/LeoNatan25","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=BR68NJEJXGWL6"],"categories":[],"sub_categories":[],"readme":"# LNViewHierarchyDumper\n\nA framework for programmatically dumping the view hierarchy of your app into an Xcode 16 and above compatible view hierarchy file archive.\n\n[![GitHub release](https://img.shields.io/github/release/LeoNatan/LNViewHierarchyDumper.svg)](https://github.com/LeoNatan/LNViewHierarchyDumper/releases) [![GitHub stars](https://img.shields.io/github/stars/LeoNatan/LNViewHierarchyDumper.svg)](https://github.com/LeoNatan/LNViewHierarchyDumper/stargazers) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/LeoNatan/LNViewHierarchyDumper/master/LICENSE) \u003cspan class=\"badge-paypal\"\u003e\u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=BR68NJEJXGWL6\" title=\"Donate to this project using PayPal\"\u003e\u003cimg src=\"https://img.shields.io/badge/paypal-donate-yellow.svg?style=flat\" alt=\"PayPal Donation Button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\n[![GitHub issues](https://img.shields.io/github/issues-raw/LeoNatan/LNViewHierarchyDumper.svg)](https://github.com/LeoNatan/LNViewHierarchyDumper/issues) [![GitHub contributors](https://img.shields.io/github/contributors/LeoNatan/LNViewHierarchyDumper.svg)](https://github.com/LeoNatan/LNViewHierarchyDumper/graphs/contributors) ![](https://img.shields.io/badge/swift%20package%20manager-compatible-green)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"Screenshot.png\"/\u003e\u003c/p\u003e\n\nThe framework supports dumping the view hierarchy of apps running on iOS, tvOS and watchOS simulators, hardware devices **with developer image mounted**, and macOS and Catalyst **with Xcode installed**. Under unsupported targets or environments, the frameworks fails silently and returns an error.\n\n**This framework uses Xcode's internal DebugHierarchyFoundation framework, and is not AppStore safe**, thus you should use with care, only linking against it in development/testing scenarios/builds. Since the framework requires developer tooling (developer image mounted on iOS hardware; Xcode on macOS), there would be little benefit from having this framework in production anyway.\n\nDeploying the framework conditionally is a complex topic, beyond the scope of this README. One strategy can be to link the dynamic library with UI testing project, and launch your app with the `DYLD_INSERT_LIBRARIES` environment variable, pointing to the LNViewHierarchyDumper framework.\n\nUsing the framework is very easy:\n\n```swift\nimport LNViewHierarchyDumper\n\n//...\n\nlet url = //URL to a directory\ntry LNViewHierarchyDumper.shared.dumpViewHierarchy(to: url)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonatan%2Flnviewhierarchydumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonatan%2Flnviewhierarchydumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonatan%2Flnviewhierarchydumper/lists"}