when will GoogleMLKit support arm64 simulator
Asked Answered
L

3

5

We're using GoogleMLKit on iOS, and right now our team is switching to m1 Macbook. We have to set some conditions to make it work on ios-arm64-simulator like this

enter image description here

I'd like to know if google official has a plan to support ios-arm64-simulator such as providing an xcframework?

Legionary answered 29/3, 2022 at 3:12 Comment(0)
S
5

Yes, we have a plan, but it can take some time to find a solution.

Slipcover answered 30/3, 2022 at 1:3 Comment(3)
Is there any issue open we can track progress on this topic?Bibliolatry
Yes, here is the open issue link: issuetracker.google.com/issues/178965151Slipcover
@DongChen it's been 2 years and we never heard back from Google, it's still missing the arm64...Adrastus
U
1

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.

  1. In "Excluded Architectures": For every target set "Any iOS Simulator SDK: i386 arm64".
  2. 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".
  3. 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 screenshot.

Unseemly answered 22/5 at 10:48 Comment(0)
M
0

I managed to run the app on simulator by switching to Rosetta:

Product > Destination > Show All Run Destinations

Then choose the simulator you need, but (Rosetta) version

Morrissey answered 9/10 at 8:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.