{"id":15481909,"url":"https://github.com/surpher/pactmacosexample","last_synced_at":"2025-03-28T14:32:49.068Z","repository":{"id":55607067,"uuid":"104469956","full_name":"surpher/PactMacOSExample","owner":"surpher","description":"An example macOS app demonstrating the use of PactConsumerSwift (https://github.com/DiUS/pact-consumer-swift) framework using Carthage.","archived":false,"fork":false,"pushed_at":"2021-02-07T22:18:42.000Z","size":3901,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-19T05:19:51.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/surpher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-22T12:04:19.000Z","updated_at":"2021-02-07T22:18:44.000Z","dependencies_parsed_at":"2022-08-15T04:10:58.943Z","dependency_job_id":null,"html_url":"https://github.com/surpher/PactMacOSExample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surpher%2FPactMacOSExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surpher%2FPactMacOSExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surpher%2FPactMacOSExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surpher%2FPactMacOSExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surpher","download_url":"https://codeload.github.com/surpher/PactMacOSExample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246046301,"owners_count":20714948,"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-10-02T05:06:55.078Z","updated_at":"2025-03-28T14:32:49.046Z","avatar_url":"https://github.com/surpher.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PactMacOSExample\n[![Build](https://github.com/surpher/PactMacOSExample/workflows/Build/badge.svg)](https://github.com/surpher/PactMacOSExample/actions?query=workflow%3ABuild)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nAn example macOS app demonstrating the use of PactConsumerSwift (https://github.com/DiUS/pact-consumer-swift) framework using Carthage with a macOS project.\n\n## Versions\n\n- macOS 10.15+\n- Xcode 12.4\n- Carthage 0.37.0\n- pact-ruby-standalone\n\n## Installation\n\n### pact-ruby-standalone\n\n```shell\nbrew tap pact-foundation/pact-ruby-standalone\nbrew install pact-ruby-standalone\n```\n\n### Dependencies\n\n```shell\ncarthage update --platform macos\n```\n\n### Setting up PactMacOSExampleTests test target\n#### Build Phases\n\nLink the `PactConsumerSwift.framework` in Build Phases step. Drag it from the `/Carthage/Build/Mac/` folder onto the list.\n\n![build-phase][build-phase-link-binary]\n#### Build Settings\n\nAdd `$(PROJECT_DIR)/Carthage/Build/Mac` to `Framework Search Paths`\n\n![Framework Search Paths][framework-search-paths]\n\nAdd `$(FRAMEWORK_SEARCH_PATHS)` to `Runpath Search Paths`\n\n![Runpath Search Paths][runpath-search-paths]\n\n#### Test pre-actions and post-actions\n\nUpdate test pre-actions to start the mock-server before tests are run.\n\n![pre-actions][pre-actions]\n\nUpdate test post-actions to stop the mock-server when tests finish.\n\n![post-actions][post-actions]\n### Where are the Pact contracts?\n\nOnce the tests pass you can find them in `${SRCROOT}/tmp/pacts-ssl/thisapp-swapi.json`.\n\n[build-phase-link-binary]: https://raw.githubusercontent.com/surpher/PactMacOSExample/main/Support/Images/build-phase-link-binary.png\n[framework-search-paths]: https://raw.githubusercontent.com/surpher/PactMacOSExample/main/Support/Images/framework-search-paths.png\n[runpath-search-paths]: https://raw.githubusercontent.com/surpher/PactMacOSExample/main/Support/Images/runpath-search-paths.png\n[pre-actions]: https://raw.githubusercontent.com/surpher/PactMacOSExample/main/Support/Images/test-pre-actions.png\n[post-actions]: https://raw.githubusercontent.com/surpher/PactMacOSExample/main/Support/Images/test-post-actions.png","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurpher%2Fpactmacosexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurpher%2Fpactmacosexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurpher%2Fpactmacosexample/lists"}