You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library was easy to install and use, but I noticed that I got a warning that I needed to use Rosetta in order to be compatible with other libraries.
Additionally, I noticed there was a slow down in the app when using Rosetta in the Simulator, which makes some sense. I traced the issue back to Google's MLKit Podspec, which is excluding arm64 simulator builds, which means Xcode is forced to use x386 and then use Rosetta for the other libraries.
Since the MLKit Cocoapod would obviously have arm64 support, you can force Cocoapods to not switch the architecture like so:
post_installdo |installer|
# put this at the end of this blockinstaller.pods_project.build_configurations.eachdo |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"]="arm64"endend
This worked - the app built for the simulator without forcing me to use Rosetta. However, the performance degradation still persisted. An example of this is that the frame rate is seriously slow on a table when scrolling.
The production build does not appear to have this problem, or at least it is far less so. I'm not sure how to explain this!
any news on this? I just added the ml translate kit to my flutter app and I see the same issue on iOS simulator. No problem with android emulator or on real devices though
What happened?
This library was easy to install and use, but I noticed that I got a warning that I needed to use Rosetta in order to be compatible with other libraries.
Additionally, I noticed there was a slow down in the app when using Rosetta in the Simulator, which makes some sense. I traced the issue back to Google's MLKit Podspec, which is excluding arm64 simulator builds, which means Xcode is forced to use x386 and then use Rosetta for the other libraries.
https://github.com/CocoaPods/Specs/blob/master/Specs/b/e/b/GoogleMLKit/4.0.0/GoogleMLKit.podspec.json#L18
Since the MLKit Cocoapod would obviously have arm64 support, you can force Cocoapods to not switch the architecture like so:
This worked - the app built for the simulator without forcing me to use Rosetta. However, the performance degradation still persisted. An example of this is that the frame rate is seriously slow on a table when scrolling.
The production build does not appear to have this problem, or at least it is far less so. I'm not sure how to explain this!
Version
latest
Which ML Kit packages do you use?
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
Explained above.
The text was updated successfully, but these errors were encountered: