{"id":32146934,"url":"https://github.com/thelookoutway/configcop","last_synced_at":"2026-02-21T03:02:18.558Z","repository":{"id":63921142,"uuid":"242096066","full_name":"thelookoutway/ConfigCop","owner":"thelookoutway","description":"A Swift command line application that verifies xcconfig files against a template.","archived":false,"fork":false,"pushed_at":"2020-02-24T02:37:49.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2026-02-17T09:55:40.105Z","etag":null,"topics":["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/thelookoutway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-21T08:58:35.000Z","updated_at":"2023-09-06T00:52:46.000Z","dependencies_parsed_at":"2023-01-14T14:15:39.874Z","dependency_job_id":null,"html_url":"https://github.com/thelookoutway/ConfigCop","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thelookoutway/ConfigCop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thelookoutway%2FConfigCop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thelookoutway%2FConfigCop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thelookoutway%2FConfigCop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thelookoutway%2FConfigCop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thelookoutway","download_url":"https://codeload.github.com/thelookoutway/ConfigCop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thelookoutway%2FConfigCop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"online","status_checked_at":"2026-02-21T02:00:07.432Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["swift","xcode"],"created_at":"2025-10-21T08:34:09.440Z","updated_at":"2026-02-21T03:02:18.553Z","avatar_url":"https://github.com/thelookoutway.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConfigCop 🎛👮‍♀️\n\n[![SPM](https://img.shields.io/badge/spm-compatible-brightgreen.svg?style=for-the-badge)](https://swift.org/package-manager)\n![Platforms](https://img.shields.io/badge/Platforms-macOS-blue.svg?style=for-the-badge)\n[![license](https://img.shields.io/github/license/fivegoodfriends/ConfigCop.svg?style=for-the-badge)](https://github.com/fivegoodfriends/ConfigCop/blob/master/LICENSE)\n\nA Swift command line application that verifies `.xcconfig` files against a template.\n\nThis tool will iterate over a template of keys that you provide, checking that all of the keys are present in a given `xcconfig` file. If you have multiple config files, e.g. for a \"white label\" app, automatically checking these as part of CI can be useful.\n\nYou can run this tool ad-hoc, or perhaps add it as a build phase script in your Xcode project.\n\n## Installation\n\n### Make (Recommended)\n\nThis will build the command line application and install it to `/usr/local/bin`.\n\n```bash\n$ git clone https://github.com/fivegoodfriends/ConfigCop.git\n$ cd ConfigCop\n$ make\n```\n\n### Swift Package Manager\n\n```bash\n$ git clone https://github.com/fivegoodfriends/ConfigCop.git\n$ cd ConfigCop\n$ swift build\n```\nAfter building with SPM you can manually copy the executable file to any location you like, such as `/usr/local/bin` or run `$ make` to do this for you.\n\n## Creating a Template File\n\nIn order to verify your xcconfig files, a template is needed to compare against. You can create this template file anywhere, in your project probably makes sense.\n\nA section named `required:` is required so that there is something to compare against. The `optional:` section is for, well, optional keys.\nPut all keys that *must* appear in your `xcconfig` file(s) in the required list. Optional keys will not cause the application to fail, but wil generate a warning if they are missing from the config.\n\nHere is an example file called `AppConfigTemplate.yml`:\n\n```yml\nrequired:\n  - MARKETING_VERSION\n  - SWIFT_VERSION\n  - ENABLE_BITCODE\n  - PRODUCT_BUNDLE_IDENTIFIER\n  - BASE_URL\noptional:\n  - TEST_URL\n```\n\n## Usage\n\nAssuming `/usr/local/bin` is in your `$PATH` you can run as follows:\n\n```bash\nconfigcop -c ~/iOSApp/Configs/Debug.xcconfig -t ~/Code/iOSApp/Configs/ConfigTemplate.yml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthelookoutway%2Fconfigcop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthelookoutway%2Fconfigcop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthelookoutway%2Fconfigcop/lists"}