{"id":32149514,"url":"https://github.com/karlisl/simplemdm-swift","last_synced_at":"2026-02-23T04:33:09.889Z","repository":{"id":62455436,"uuid":"123143383","full_name":"karlisl/simplemdm-swift","owner":"karlisl","description":"Swift library for SimpleMDM API http://simplemdm.com","archived":false,"fork":false,"pushed_at":"2018-02-27T18:23:14.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T18:10:06.928Z","etag":null,"topics":["ios","mdm","simplemdm","swift"],"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/karlisl.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":"2018-02-27T14:48:51.000Z","updated_at":"2018-03-12T17:40:01.000Z","dependencies_parsed_at":"2022-11-02T00:00:40.645Z","dependency_job_id":null,"html_url":"https://github.com/karlisl/simplemdm-swift","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/karlisl/simplemdm-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlisl%2Fsimplemdm-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlisl%2Fsimplemdm-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlisl%2Fsimplemdm-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlisl%2Fsimplemdm-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karlisl","download_url":"https://codeload.github.com/karlisl/simplemdm-swift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlisl%2Fsimplemdm-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T02:24:00.660Z","status":"ssl_error","status_checked_at":"2026-02-23T02:22:56.087Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ios","mdm","simplemdm","swift"],"created_at":"2025-10-21T09:58:56.841Z","updated_at":"2026-02-23T04:33:09.881Z","avatar_url":"https://github.com/karlisl.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleMDM Swift\n\n![CocoaPods](https://img.shields.io/cocoapods/v/SimpleMDM.svg) ![Platform](https://img.shields.io/badge/platforms-iOS%209.0+%20%7C%20macOS%2010.12+-222222.svg)\n\nSwift library for SimpleMDM API.\n\n**Please Note:** This is not the offical library and therefore is not officially supported. It does not currently wrap the complete functionality of the SimpleMDM API. For a current listing of API functionality, please refer to the SimpleMDM documentation at https://www.simplemdm.com/docs/api/.\n\n\n## Requirements\n\n- iOS 9.0+ | macOS 10.12+\n- Xcode 9\n\n## Integration\n\n#### CocoaPods (iOS 9+, OS X 10.12+)\n\nYou can use [CocoaPods](http://cocoapods.org/) to install `SimpleMDM` by adding it to your `Podfile`:\n\n```ruby\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget 'MyApp' do\n    pod 'SimpleMDM'\nend\n```\n\n#### Swift Package Manager\n\nYou can use [The Swift Package Manager](https://swift.org/package-manager) to install `SimpleMDM` by adding the proper description to your `Package.swift` file:\n\n```swift\n// swift-tools-version:4.0\n\nimport PackageDescription\n\nlet package = Package(\n    name: \"YOUR_PROJECT_NAME\",\n    dependencies: [\n        .package(url: \"https://github.com/karlisl/simplemdm-swift.git\", from: \"0.1.0\"),\n    ]\n)\n```\n\nNote that the [Swift Package Manager](https://swift.org/package-manager) is still in early design and development, for more information checkout its [GitHub Page](https://github.com/apple/swift-package-manager).\n\n#### Manually (iOS 9+, OS X 10.12+)\n\nTo use this library in your project manually just drag SimpleMDM.swift to the project tree.\n\n## Usage\n\n### Initialization\n\n```swift\nimport SimpleMDM\n```\n\n```swift\n// Set SimpleMDM API key\nSimpleMDM.apiKey = \"ab46akuRfn19x1O\"\n```\n\n### Apps\n\n```swift\n// List all apps\nSimpleMDM.Apps.all { (apps) in\n    print(apps)\n}\n\n// Retreive specific app\nSimpleMDM.Apps.find(appId: 1234) { (app) in\n    print(app)\n}\n```\n\n### App groups\n\n```swift\n// Update associated apps on associated devices\nSimpleMDM.AppGroups.update(appGroupId: 1234) { (success) in\n    print(success)\n}\n```\n\n### Devices\n\n```swift\n// List all devices\nSimpleMDM.Devices.all { (devices) in\n    print(devices)\n}\n\n// List installed apps for specific device\nSimpleMDM.Devices.installedApps(forDeviceWithId: 1234) { (apps) in\n    print(apps)\n}\n\n// Push assigned apps to specific device\nSimpleMDM.Devices.pushApps(deviceId: 1234) { (success) in\n    print(success)\n}\n\n// Refresh information about specific device\nSimpleMDM.Devices.refresh(deviceId: 1234) { (success) in\n    print(success)\n}\n```\n\n### Device groups\n\n```swift\n// List all device groups\nSimpleMDM.DeviceGroups.all { (deviceGroups) in\n    print(deviceGroups)\n}\n```\n\n### Managed App Configs\n\n```swift\n// List all managed app configs for specific app\nSimpleMDM.ManagedAppConfigs.all(appId: 1234) { (managedAppConfigs) in\n    print(managedAppConfigs)\n}\n```\n\n## License\n\nSimpleMDM Swift is released under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlisl%2Fsimplemdm-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarlisl%2Fsimplemdm-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlisl%2Fsimplemdm-swift/lists"}