{"id":13908369,"url":"https://github.com/thomaspaulmann/Swish","last_synced_at":"2025-07-18T07:31:00.429Z","repository":{"id":142898858,"uuid":"72871125","full_name":"thomaspaulmann/Swish","owner":"thomaspaulmann","description":"👷Build Swift Projects on a Remote Machine within Xcode.","archived":false,"fork":false,"pushed_at":"2017-01-08T18:16:46.000Z","size":1804,"stargazers_count":274,"open_issues_count":5,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-11T16:54:07.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/thomaspaulmann.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-04T17:39:51.000Z","updated_at":"2025-04-20T18:24:04.000Z","dependencies_parsed_at":"2023-03-26T16:20:33.835Z","dependency_job_id":null,"html_url":"https://github.com/thomaspaulmann/Swish","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/thomaspaulmann/Swish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FSwish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FSwish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FSwish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FSwish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomaspaulmann","download_url":"https://codeload.github.com/thomaspaulmann/Swish/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FSwish/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265720462,"owners_count":23817241,"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-08-06T23:02:40.818Z","updated_at":"2025-07-18T07:30:59.648Z","avatar_url":"https://github.com/thomaspaulmann.png","language":"Shell","readme":"![Swish Logo](https://github.com/thomaspaulmann/Swish/raw/master/Design/Exports/Logo.png)\n\nSwish is a simple script for remote building your Swift projects on a Linux machine. Why is that so cool? You can develop in Xcode on macOS and can use an External Build System to deploy your code on Linux.\n\nThe next chapters are all about integrating Swish in Xcode and describes how to build Swift projects on a remote machine right outta Xcode. It targets the early adopters of Server-Side Swift and should minimize the gap between macOS and Linux. It's **work in progress**, so please report any issues that you're running in.\n\n## Prerequisites:\n\n* A Remote Machine that running Linux and Swift ([Here](/Scripts/setup-swift-3.0-arm.sh) is an installation script for a RaspberryPi 3)\n* SSH KeyPair\n\n## Setup SSH Authentication\n\nFirst you'll need to generate a public/private keypair:\n\n```\nssh-keygen -t rsa\n```\n\nFollow the prompts. When it asks if you want to protect the key with a passphrase, you should say `YES`!\n\nNow, assuming your ssh key exists, you can install it on your remote machine by running:\n\n```\ncat ~/.ssh/id_rsa.pub | ssh \u003cusername\u003e@\u003chostname\u003e \"mkdir -p ~/.ssh \u0026\u0026 cat \u003e\u003e  ~/.ssh/authorized_keys\"\n```\n\nYou can start a new ssh session. You'll have to enter the password, but this should be the last time you need to do this.\n\n```\nssh \u003cusername\u003e@\u003chostname\u003e\n```\n\nYour good to go 💪\n\n## Installation with Homebrew\n\n```\nbrew install thomaspaulmann/homebrew-formulae/swish\n```\n\nNow you can run `swish` in your terminal.\n\n## Configure Xcode\n\n1. Add a new target and select **External Build System** (in cross-plattform tab) as template.\n2. Set `/bin/bash` as the build tool of the target.\n3. Select your generated target and set arguments (in info tab) to `swish \u003cusername\u003e \u003chostname\u003e`\n4. Build your project (with the newly created target) and enjoy your compiled swift code on your remote machine.\n\n## Run Project\n\nOpen a new terminal window and connect to your remote machine via SSH.\n\n```\nssh \u003cusername\u003e@\u003chostname\u003e\n```\n\nNavigate to the synced project directory and run your project as usual.\n\n```\ncd ~/Swish/\u003cprojectname\u003e\n.build/debug/\u003cprojectname\u003e\n```\n\nHave fun 🍻\n\n## Thanks\n\n* Juan Hodgson for the ['Lazer 84'-Font](https://www.behance.net/gallery/31261857/LAZER-84-Free-Font) 🔫\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":["HarmonyOS","Resources"],"sub_categories":["Windows Manager","Swift programming"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaspaulmann%2FSwish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomaspaulmann%2FSwish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaspaulmann%2FSwish/lists"}