{"id":13995640,"url":"https://github.com/milend/hmap","last_synced_at":"2026-02-22T14:37:59.770Z","repository":{"id":37752473,"uuid":"100884300","full_name":"milend/hmap","owner":"milend","description":"hmap is a command line tool written in Swift to work with Clang header maps produced by Xcode.","archived":false,"fork":false,"pushed_at":"2022-02-13T17:11:25.000Z","size":61,"stargazers_count":311,"open_issues_count":0,"forks_count":37,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-30T00:03:27.584Z","etag":null,"topics":["clang","command-line","command-line-tool","swift","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/milend.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-20T19:36:22.000Z","updated_at":"2024-10-25T12:06:37.000Z","dependencies_parsed_at":"2022-07-08T04:54:44.499Z","dependency_job_id":null,"html_url":"https://github.com/milend/hmap","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milend%2Fhmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milend%2Fhmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milend%2Fhmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milend%2Fhmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milend","download_url":"https://codeload.github.com/milend/hmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227190261,"owners_count":17745237,"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":["clang","command-line","command-line-tool","swift","xcode"],"created_at":"2024-08-09T14:03:31.556Z","updated_at":"2025-10-21T09:22:24.787Z","avatar_url":"https://github.com/milend.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# What is this?\n\n`hmap` is a command line tool to work with Clang header maps produced by Xcode.\nIt is written in Swift.\n\nNOTE: I've also created [chmap](https://github.com/milend/chmap), a cross-platform tool which provides similar functionality as `hmap`.\n\n# How to Get\n\n- [Homebrew](https://brew.sh): `brew install milend/taps/hmap`\n- Grab a [release](https://github.com/milend/hmap/releases) from GitHub.\n- Build from source. See instructions below.\n\n# How to Use\n\nTo print the contents of a header map:\n\n    hmap print ~/path/to/header_map.hmap\n\nTo convert the contents of a binary header map to JSON:\n\n    hmap convert ~/header_map.hmap ~/header_map.json\n\n`hmap` deduces file formats by looking at the file extensions of the paths.\n\nYou can also use the `convert` command to create a binary header map from JSON:\n\n    hmap convert ~/header_map.json ~/header_map.hmap\n\nYou can discover all the commands and options by using `hmap --help`.\n\n## Requirements\n\n- hmap requires Swift 5.\n- Starting from Xcode 10.2, Swift 5 command line tools require the Swift 5 runtime libraries which are included in macOS Majave 10.4.4. If you're running an earlier version of macOS, you need to install the [Swift 5 Runtime Support for Command Line Tools](https://support.apple.com/kb/DL1998).\n\n# Building from Source\n\n## Xcode\n\nBefore building with Xcode, you must download all dependencies by running:\n\n    swift package update\n\nThen generate an Xcode project by running:\n\n    swift package generate-xcodeproj\n\n## Swift Package Manager\n\nIf you would like to build from the command line, run:\n\n    swift build\n\nTo produce a release build suitable for distribution, run:\n\n    swift build -c release\n\nTo verify that all tests pass, run:\n\n    swift test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilend%2Fhmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilend%2Fhmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilend%2Fhmap/lists"}