Ever since adding MLKit dependency to my iOS app, ...
# multiplatform
m
Ever since adding MLKit dependency to my iOS app, I’ve been having issues with simulator destinations. MLKit doesn’t support arm64 simulators, and since I added the dependency all my simulators vanished from the destination selector. I tried configuring the project for x86_64 simulators but still they don’t show. Are there any gotchas I should be aware of?
f
Please share your Gradle configuration, it’s not currently helpful
m
Not sure what of the 40+ Gradle files to share. It would be useful to know if anyone has gotten mlkit working on an iOS simulator?
f
You can implement mlkit only for arm64 target and use a no-op implementation for arm64-simulator
The expect/actual system is prefect for this situation
m
Yes, I’ve implemented a “no-mlkit” scheme so I can still run the app on arm64. However, I believe mlkit should work on rosetta (x86_64) simulators on the Apple Silicon. I’m just having a lot of trouble trying to get all the linking right in the build. About a hundred rounds with Claude hasn’t helped unfortunately. That’s why I’m trying to know if it’s actually possible, before spending more time on this.
I suppose the fact that Apple is phasing out Rosetta 2, means that I shouldn’t be spending much time on that anyway. Fingers-crossed for mlkit supporting arm64 simulators soon.