{"id":15716150,"url":"https://github.com/vinhnx/spawn","last_synced_at":"2025-07-22T01:34:12.507Z","repository":{"id":63921218,"uuid":"181931860","full_name":"vinhnx/spawn","owner":"vinhnx","description":"A small command-line tool to quickly tryout a Swift Package Manager package locally","archived":false,"fork":false,"pushed_at":"2020-06-14T02:44:33.000Z","size":54,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-16T06:10:22.693Z","etag":null,"topics":["command-line","command-line-tool","homebrew","spm","swift","swift-package-manager","swiftpm","terminal","tryout","vapor","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/vinhnx.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":"2019-04-17T16:44:14.000Z","updated_at":"2021-01-30T00:51:34.000Z","dependencies_parsed_at":"2023-01-14T14:15:39.873Z","dependency_job_id":null,"html_url":"https://github.com/vinhnx/spawn","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vinhnx/spawn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhnx%2Fspawn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhnx%2Fspawn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhnx%2Fspawn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhnx%2Fspawn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinhnx","download_url":"https://codeload.github.com/vinhnx/spawn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhnx%2Fspawn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266409601,"owners_count":23924287,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["command-line","command-line-tool","homebrew","spm","swift","swift-package-manager","swiftpm","terminal","tryout","vapor","xcode"],"created_at":"2024-10-03T21:44:14.228Z","updated_at":"2025-07-22T01:34:12.466Z","avatar_url":"https://github.com/vinhnx.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spawn\n\n[![Swift 5.0](https://img.shields.io/badge/swift-5.0-orange.svg)](#)\n[![Swift Package Manager](https://img.shields.io/badge/spm-compatible-brightgreen.svg?style=flat)](https://swift.org/package-manager)\n[![@vinhnx](https://img.shields.io/badge/contact-%40vinhnx-blue.svg)](https://twitter.com/vinhnx)\n\n**spawn** A small command-line tool to quickly tryout a Swift Package Manager (SPM) package locally. \n\nAs of Xcode 11, this has been sherlock'ed by Xcode 11 Package support :), as in from Xcode 11 onwards, Xcode will automatically resolve package dependencies and open Xcode project for you, no 3rd party tool needed. But I will keep this tool as learning purpose.\n\nIts job is to check if current repo has any `Package.swift` and resolve dependencies and then open the Xcode for you.\n\n(works with [Vapor](https://github.com/vapor), [too](https://github.com/vinhnx/spawn/blob/master/README.md#vapor))\n\n```bash\n$ spawn\nCompleted resolution in 0.22s\n📦 ... Everything is already up-to-date\n🛠 ... generated: ./spawn.xcodeproj\n📂 ... opening updated Xcode project\n✅ all done!\n```\n\nNOTE: you might want to close Xcode to have the `xed .` taking into effect, or chose `Revert` option from Xcode alert.\n\n## Goals\n\nWhen you want to try out or to edit a SPM package in Xcode, or after adding any new `.package` under SPM's package manifest file; you need to either run `swift package update` or `swift package generate-xcodeproj` and reload Xcode again.\n\nThis small wrapper aims to automate that process. \n\ntldr; before:\n```bash\n$ git clone https://github.com/vinhnx/DictionaryNestedSubscript # clone any Swift Package Manager project\n$ cd DictionaryNestedSubscript # change directory to newly cloned repo\n$ swift package update # update or resolve package dependencies\n$ swift package generate-xcodeproj # generate a .xcodeproj to edit on Xcode\n$ xed . # open generated .xcodeproj automatically\n```\n\nafter:\n```bash\n$ git clone https://github.com/vinhnx/DictionaryNestedSubscript # clone any Swift Package Manager project\n$ cd DictionaryNestedSubscript # change directory to newly cloned repo\n$ spawn\n```\n\nTODO: I will be looking at the way to automate cloning from remote repo in the future, for example: \n\n```bash\n$ spawn https://github.com/vinhnx/DictionaryNestedSubscript # not yet working\n```\n\n## Usage\n\nOn any Swift package directory, after `git clone`:\n\n```bash\n$ spawn\n```\n\n### Vapor\n\nYou can use spawn as replacement for Vapor's `vapor xcode -y` command\n\nbefore:\n```bash\n$ vapor xcode -y\n```\n\nafter:\n```bash\n$ spawn\n```\n\n## Installation\n\n🆕 **[swiftbrew](https://github.com/swiftbrew/Swiftbrew)**\n\n\"A package manager that installs prebuilt Swift command line tool packages, or Homebrew for Swift packages.\"\n\n```\n$ swift brew install vinhnx/spawn\n```\n\n**[homebrew](https://brew.sh)**\n\n```bash\n$ brew tap vinhnx/homebrew-formulae\n$ brew install spawn\n```\n\nor\n```bash\n$ brew install vinhnx/homebrew-formulae/spawn\n```\n\n**[Mint](https://github.com/yonaskolb/mint)**\n\n```bash\n$ mint install vinhnx/spawn\n```\n\n**[Marathon](https://github.com/JohnSundell/Marathon)**\n\n```bash\n$ marathon install vinhnx/spawn\n```\n\n**Make**\n\n```bash\n$ git clone https://github.com/vinhnx/spawn.git\n$ cd spawn\n$ make\n```\n\n**Swift Package Manager**\n\n```bash\n$ git clone https://github.com/vinhnx/spawn.git\n$ cd spawn\n$ swift build -c release\n$ cp -f .build/release/spawn /usr/local/bin/spawn\n ```\n\n## Related projects\n\nIf you like this tool, checkout my [vintage](https://github.com/vinhnx/vintage), it's a tool to check for any outdated packages.\n\nCombo:\n\n```bash\n$ vintage \u0026\u0026 spawn # vintage: check for any outdated packages, spawn: generate and update packages for you\n```\n\nI hope you like it! :)\n\n## Help, feedback or suggestions?\n\nFeel free to contact me on [Twitter](https://twitter.com/vinhnx) for discussions, news \u0026 announcements \u0026 other projects. :rocket:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinhnx%2Fspawn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinhnx%2Fspawn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinhnx%2Fspawn/lists"}