{"id":3114,"url":"https://github.com/jankuca/swm","last_synced_at":"2025-04-30T20:34:16.113Z","repository":{"id":24238952,"uuid":"27631802","full_name":"jankuca/swm","owner":"jankuca","description":"Swift Modules, a swift module (or package) manager #fuck_xcode #terminal_rocks","archived":false,"fork":false,"pushed_at":"2014-12-13T16:35:49.000Z","size":272,"stargazers_count":61,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-14T23:39:19.047Z","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/jankuca.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":"2014-12-06T11:17:39.000Z","updated_at":"2024-01-05T18:04:14.000Z","dependencies_parsed_at":"2022-09-10T13:10:44.232Z","dependency_job_id":null,"html_url":"https://github.com/jankuca/swm","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/jankuca%2Fswm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jankuca%2Fswm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jankuca%2Fswm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jankuca%2Fswm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jankuca","download_url":"https://codeload.github.com/jankuca/swm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251777884,"owners_count":21642239,"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-01-05T20:16:31.786Z","updated_at":"2025-04-30T20:34:16.080Z","avatar_url":"https://github.com/jankuca.png","language":"Swift","funding_links":[],"categories":["WebSocket","Dependency / Package Manager"],"sub_categories":["Other free courses","Getting Started","Web View"],"readme":"\n**Swift Modules**\n\nThe Swift Modules manager similar to the JavaScript world's *npm* and *bower*\n\n# Installation\n\n\n```\n$ curl \"https://raw.github.com/jankuca/swm/master/install.sh\" | bash\n```\n\n# Usage\n\n## Dependencies\n\nModule dependencies are declared in a `swiftmodule.json` file in the JSON format:\n\n```\n{\n  \"name\": \"ModuleName\",\n  \"directories\": {\n    \"source\": \"src\"\n  },\n  \"dependencies\": {\n    \"Dependency\": \"jankuca/dependecy\",\n    \"MyOtherDependency\": \"git://github.com/jankuca/other-dependency\"\n  }\n}\n```\n\n```\n$ swm install\n```\n\nThe dependencies are then importable via the `import` Swift statement using the names specified in the `dependencies` map of the `swiftmodule.json` file.\n\n### Using packages without a swiftmodule.json file\n\nIf a package does not include the `swiftmodule.json` file, the including package can specify the source file directory of the dependency in its `swiftmodule.json`.\n\n```\n{\n  \"name\": \"ModuleName\",\n  \"dependencies\": {\n    \"Dependency\": \"jankuca/dependency @source:src\"\n  }\n}\n```\n\n## Building\n\nSWM can also build the actual app (the root module). If a `source` directory is specified in the `swiftmodule.json` file, all `.swift` files inside that subtree are compiled into a binary.\n\n```\n$ swm build\n```\n\nNote that `swm install` also runs this internally.\n\n## Code Signing\n\nOnce the app is built, it needs to be code-signed for distribution using a certificate obtained from Apple. SWM makes this dead simple by listing the available certificates and provisioning profiles.\n\nThere are two signing modes:\n\n1. `store` – should be used for signing for the App Store or other distribution\n2. `device` – should be used for signing for development and testing purposes; this adds a provisioning profile to the app package.\n\n```\n$ swm sign store\nCertificate:\n  1) CF826998D43332…499C595FCE980F20  \"iPhone Developer: … (…)\"\n1\nSignature for device\n  Certificate: CF826998D43332…499C595FCE980F20\n  Provisioning Profile: (none)\nok\n```\n\nThe command prompts for the certificate number (`1` in the case above).\n\n```\n$ swm sign device\nCertificate:\n  1) CF826998D43332…499C595FCE980F20  \"iPhone Developer: … (…)\"\n1\nProvisioning Profile:\n  1) 7716db78-0b66-…-9fbf-3a9b653ec84a\n1\nSignature for device\n  Certificate: CF826998D43332…499C595FCE980F20\n  Provisioning Profile: 7716db78-0b66-…-9fbf-3a9b653ec84a\nok\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjankuca%2Fswm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjankuca%2Fswm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjankuca%2Fswm/lists"}