{"id":14063156,"url":"https://github.com/yazdipour/swift-on-windows","last_synced_at":"2025-07-29T14:32:20.344Z","repository":{"id":94967282,"uuid":"150164453","full_name":"yazdipour/swift-on-windows","owner":"yazdipour","description":"Swift on Windows","archived":true,"fork":false,"pushed_at":"2018-09-25T08:23:25.000Z","size":271,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-04T00:32:47.651Z","etag":null,"topics":["swift","windows","windows-10","windows-subsystem-linux","wsl"],"latest_commit_sha":null,"homepage":null,"language":null,"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/yazdipour.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-24T20:28:46.000Z","updated_at":"2023-01-27T22:40:17.000Z","dependencies_parsed_at":"2023-06-11T09:00:31.281Z","dependency_job_id":null,"html_url":"https://github.com/yazdipour/swift-on-windows","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yazdipour/swift-on-windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazdipour%2Fswift-on-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazdipour%2Fswift-on-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazdipour%2Fswift-on-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazdipour%2Fswift-on-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yazdipour","download_url":"https://codeload.github.com/yazdipour/swift-on-windows/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazdipour%2Fswift-on-windows/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267703062,"owners_count":24130463,"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-29T02:00:12.549Z","response_time":2574,"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","windows","windows-10","windows-subsystem-linux","wsl"],"created_at":"2024-08-13T07:03:05.862Z","updated_at":"2025-07-29T14:32:20.337Z","avatar_url":"https://github.com/yazdipour.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# Swift on Windows\n    \"           _  __ _   \"\n    \" ____ __ _(_)/ _| |_ \"\n    \"(_-\u003c V  V / |  _|  _|\"\n    \"/__/\\_/\\_/|_|_|  \\__|\"\n    \n    Compile and Build Swift Porject on Windows with the help of WSL\n\n## Requirements\n* Windows Subsystem for Linux (I have tried on Debian \u0026 Ubuntu Distro)\n* Python2.7 on WSL\n* (Optional) VSCode with [SwiftLanguage Extension](https://marketplace.visualstudio.com/items?itemName=Kasik96.swift)\n\n## Installing Swift\nVisit https://swift.org/download/ and check for the latest release.\n\n    $ wget --no-check-certificat https://swift.org/builds/swift-4.2-release/ubuntu1604/swift-4.2-RELEASE/swift-4.2-RELEASE-ubuntu16.04.tar.gz\n\n    $ mkdir ~/swift\n    $ tar -xvzf swift-4.2-RELEASE-ubuntu16.04.tar.gz -C ~/swift\n\n**Dependences** \n\n\t$ sudo apt install python-swiftclient clang libicu-dev libpython2.7 libxml2 libcurl3 -y\n\n**IF** you have problem getting `libicu`\n\n\t$ wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb\n\t$ sudo dpkg -i libicu55_55.1-7_amd64.deb\n\t$ sudo apt-get -f install\n\n![Screenshot1.png](Screenshot1.png)\n\n## Create a Project\n    $ mkdir sampleProject \u0026\u0026 cd sampleProject\n    $ ~/swift/usr/bin/swift package init --type executable\n\n## Build \u0026 Run it manually\n\n    $ ~/swift/usr/bin/swift build \n    $ ./.build/x86_64-unknown-linux/debug/sampleProject\n\n## Easy Build \u0026 Run Using VSCode Task\nI have writen a vscode task, so that I can build \u0026 run my code my project without opening terminal.\n* [Get the `tasks.json`](https://raw.githubusercontent.com/yazdipour/swift_on_windows/master/sample/.vscode/tasks.json) and put it inside `yourProjectFolder/.vscode`\n* Build \u0026 Run using `Ctrl+Shift+B`\n* Be sure to have swift package at `~/swift/` (obviously you can change the directory inside `tasks.json`)\n\n![Swift on Windows with VSCode](Screenshot.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazdipour%2Fswift-on-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyazdipour%2Fswift-on-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazdipour%2Fswift-on-windows/lists"}