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
François
12/30/2025, 11:16 AM
Please share your Gradle configuration, it’s not currently helpful
m
Mark
12/30/2025, 11:31 AM
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?
You can implement mlkit only for arm64 target and use a no-op implementation for arm64-simulator
François
12/30/2025, 7:26 PM
The expect/actual system is prefect for this situation
m
Mark
12/30/2025, 11:38 PM
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.
Mark
12/31/2025, 1:46 AM
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.