{"id":20173380,"url":"https://github.com/d-date/google-mlkit-swiftpm","last_synced_at":"2026-01-16T08:26:45.235Z","repository":{"id":56793106,"uuid":"525023673","full_name":"d-date/google-mlkit-swiftpm","owner":"d-date","description":"Google MLKit for iOS in Swift Package Manager","archived":false,"fork":false,"pushed_at":"2026-01-11T04:23:15.000Z","size":88553,"stargazers_count":118,"open_issues_count":7,"forks_count":39,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-11T12:04:14.884Z","etag":null,"topics":["cocoapods","google-ml-kit","ios","mlkit","swift","swiftpm"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d-date.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":["d-date"]}},"created_at":"2022-08-15T14:42:02.000Z","updated_at":"2026-01-11T04:22:46.000Z","dependencies_parsed_at":"2023-01-24T07:01:06.614Z","dependency_job_id":"e72c34fe-e9c4-473d-9eec-f62c53edc350","html_url":"https://github.com/d-date/google-mlkit-swiftpm","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/d-date/google-mlkit-swiftpm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-date%2Fgoogle-mlkit-swiftpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-date%2Fgoogle-mlkit-swiftpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-date%2Fgoogle-mlkit-swiftpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-date%2Fgoogle-mlkit-swiftpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d-date","download_url":"https://codeload.github.com/d-date/google-mlkit-swiftpm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-date%2Fgoogle-mlkit-swiftpm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: 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":["cocoapods","google-ml-kit","ios","mlkit","swift","swiftpm"],"created_at":"2024-11-14T01:35:54.084Z","updated_at":"2026-01-16T08:26:45.212Z","avatar_url":"https://github.com/d-date.png","language":"Swift","funding_links":["https://github.com/sponsors/d-date"],"categories":[],"sub_categories":[],"readme":"# Google MLKit SwiftPM Wrapper\n\nThis is experimental project for building MLKit in Swift Package Manager.\n\n**New:** This repository now includes automated tools to keep up-to-date with MLKit releases. See [AUTOMATION.md](AUTOMATION.md) for details.\n\n## Requirements\n\n- iOS 14 and later\n- Xcode 13.2.1 and later\n\n## Installation\n\n### Use Swift Package Manager to install\n\nAdd the package dependency to your `Package.swift`:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/d-date/google-mlkit-swiftpm\", from: \"9.0.0\")\n]\n```\n\nThen add the specific ML Kit modules you need to your target dependencies:\n\n```swift\n.target(\n    name: \"YourTarget\",\n    dependencies: [\n        .product(name: \"MLKitBarcodeScanning\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitFaceDetection\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitTextRecognition\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitImageLabeling\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitObjectDetection\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitPoseDetection\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitSegmentationSelfie\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitLanguageID\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitTranslate\", package: \"google-mlkit-swiftpm\"),\n        .product(name: \"MLKitSmartReply\", package: \"google-mlkit-swiftpm\"),\n    ]\n)\n```\n\n### Add Linker flags\n\nAdd these flags to `Other Linker Flags` in Build Settings of your Xcode projects.\n\n- `-ObjC`\n- `-all_load`\n\n### Link resource bundles to your project (if needed)\n\nSome ML Kit modules require resource bundles. Currently:\n\n#### Face Detection\nThe `MLKitFaceDetection` module requires `GoogleMVFaceDetectorResources.bundle`. Since bundles can't be automatically included via Swift Package Manager, you need to manually add it to your project.\n\nDownload `GoogleMVFaceDetectorResources.bundle` from [Release](https://github.com/d-date/google-mlkit-swiftpm/releases/download/9.0.0/GoogleMVFaceDetectorResources.bundle.zip) and add it to your Xcode project, ensuring it's included in your build target.\n\n**Note**: Other modules (Text Recognition, Pose Detection, Object Detection, Selfie Segmentation, Translation) may also require resource bundles or downloaded models at runtime. Check the official [ML Kit documentation](https://developers.google.com/ml-kit) for specific requirements.\n\n## Supported Features\n\nThis package supports the following Google ML Kit features:\n\n### Vision APIs\n- **Barcode Scanning** - Scan and decode barcodes\n- **Face Detection** - Detect faces and facial features  \n- **Text Recognition** - Recognize text in images (v2)\n- **Image Labeling** - Identify objects, locations, activities, and more\n- **Object Detection \u0026 Tracking** - Detect and track objects in images and video\n- **Pose Detection** - Detect body poses and positions\n- **Selfie Segmentation** - Segment people from the background\n\n### Language APIs\n- **Language Identification** - Identify the language of text\n- **Translation** - Translate text between languages\n- **Smart Reply** - Generate contextual reply suggestions\n\n## Limitation\n\n- Since pre-built MLKit binary missing `arm64` for iphonesimulator, this project enables to build in `arm64` for iphoneos and `x86_64` for iphonesimulator only.\n\n## Example\n\nOpen `Example/Example.xcworkspace` and fixing code signing to yours.\n\n## Automation\n\nThis repository includes automation tools for updating to new MLKit versions:\n\n- **Automated Version Checking**: Daily checks for new MLKit releases\n- **Build Automation**: Scripts to build and package new versions\n- **GitHub Actions**: Workflows for automated builds and releases\n\nFor detailed information, see [AUTOMATION.md](AUTOMATION.md).\n\n### Quick Start for Maintainers\n\nTo update to a new MLKit version:\n\n```bash\n# Check for updates\nruby scripts/check_mlkit_version.rb\n\n# Build new version (replace 5.1.0 with actual version)\n./scripts/build_all.sh 5.1.0\n```\n\nOr use the GitHub Actions workflow for fully automated builds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-date%2Fgoogle-mlkit-swiftpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-date%2Fgoogle-mlkit-swiftpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-date%2Fgoogle-mlkit-swiftpm/lists"}