This repo is used for generate SPM support for Google MLKit lib, which currently is only available on CocoaPods.
Just update target-version.txt
and push new changes, GitHub action will run and create new release with attached xcframeworks.
View .github/workflows/release.yml
for more information.
$ git clone --recurse-submodules <repo_url>
$ bundle install
$ (cd PodsProject && bundle exec pod install)
$ ./scripts/create-xcframeworks.sh
This script will:
- Build source-based libs then create xcframeworks for them (GoogleToolboxForMac, GoogleUtilitiesComponents, Protobuf)
- Use
xcframework-maker
to split prebuilt frameworks to xcframeworks (MLImage, MLKitCommon, MLKitBarcodeScanning,...)- Compress xcframeworks as zips and generate SHA256 to use in
Package.swift
- Update
Package.swift
to change.binaryTarget
url paths and checksums - Create new release and attach xcframework zips to the release
- If your git hosting service does not provide release attachments, then you can upload zips somewhere and use those urls instead.