This is experimental project for building MLKit in Swift Package Manager.
- iOS 14 and later
- Xcode 13.2.1 and later
.package(url: "https://github.com/d-date/google-mlkit-swiftpm", from: "5.0.0")Add these flags to Other Linker Flags in Build Settings of your Xcode projects.
-ObjC-all_load
The MLKitFaceDetection contains GoogleMVFaceDetectorResources.bundle. Since the bundle can't be introduced via Swift PM, you need to link to your project by yourself.
Download GoogleMVFaceDetectorResources.bundle from Release and add to your Xcode project and make it available in your build target.
- Since pre-built MLKit binary missing
arm64for iphonesimulator, this project enables to build inarm64for iphoneos andx86_64for iphonesimulator only. - Only supported
Face DetectionandBarcode Scanningright now.
Open Example/Example.xcworkspace and fixing code signing to yours.