Good news for everyone on this thread.
I have spent a week finding a solution/workaround for this issue (MLKit build on iOS Simulator). I have now finally been able to run MLKit (Translate) on the simulator. Please follow the steps below:
Disclaimer:
Up until now, I haven't faced any issues after adding the below configurations. If I find any issues, I will post them here.
- In "Excluded Architectures": For every target set "Any iOS Simulator SDK: i386 arm64".
- MLKit does not allow running on 32-bit. We can configure it in Architectures, but it conflicts with iOS simulators. So, I configured it in Excluded Architectures: For every target set "Any iOS SDK: armv7".
- Add "Required device capabilities" in Info.plist with only the item "arm64".
Now my project can auto-run on iOS simulators (x86_64) and real devices (arm64).
Using Xcode 15.3 on Macbook M1
You can confirm the final configurations from this ScreenShot .