googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.6k stars 2.94k forks source link

App Crash on ImageLabeler.imageLabeler(options: options) Method - ML Kit iOS SDK #897

Open gaurav-p-eq opened 1 week ago

gaurav-p-eq commented 1 week ago

Description: Hi, I’m facing an issue with the ML Kit on iOS, specifically with the Image Labeling functionality. My app crashes every time I call the method ImageLabeler.imageLabeler(options: options). I'm using ML Kit Face Detection and Image Labeling as part of my application.

Environment:

ML Kit version: pod 'GoogleMLKit/FaceDetection', '3.2.0' and pod 'GoogleMLKit/ImageLabeling', '3.2.0' Platform: iOS Development environment: Xcode (version) iOS version on device (where the crash occurs) Issue Details: The crash happens consistently when invoking ImageLabeler.imageLabeler(options: options). I’ve checked for any obvious issues with the options parameter and ensured the setup follows the documentation. The error logs are as follows:

(Include relevant error log or stack trace here)

Steps to Reproduce:

Initialize Image Labeler with options using ImageLabeler.imageLabeler(options: options) Run the app on a device App crashes when the method is called Troubleshooting Attempted:

Verified pod versions and reinstalled dependencies Tried different configuration settings in the options parameter Request: Could you please provide guidance on resolving this issue? I’d appreciate any insights into compatibility, additional configuration, or if there’s an update to the SDK that might address this problem.

Thanks in advance for the support!