Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS build failure: No such module 'MLKit' #18

Open
mityax opened this issue Jan 18, 2022 · 1 comment · May be fixed by #19
Open

iOS build failure: No such module 'MLKit' #18

mityax opened this issue Jan 18, 2022 · 1 comment · May be fixed by #19

Comments

@mityax
Copy link

mityax commented Jan 18, 2022

Hey @salkuadrat, thanks for the great work on this plugin - it's really helpful. I set up learning_translate and learning_language and they work perfectly on android. However, the iOS build is still failing. Not sure if the problem is related to this plugin or if it's my setup.

This is the error message when running flutter build ios. Same error happens using Xcode (and yes, I made sure to open xcworkspace and not xcodeproj as suggested here):

Swift Compiler Error (Xcode): No such module 'MLKit'
/Users/x/.pub-cache/hosted/pub.dartlang.org/learning_translate-0.0.4/ios/Classes/SwiftLearningTranslatePlugin.swift:3:7

In Xcode, it looks like this module doesn't exist either, however, there's one called "GoogleMLKit" (in case this has something to do with it (?)):

I'd greatly appreciate any help on this.

@mityax mityax changed the title iOS build failure: iOS build failure: No such module 'MLKit' Jan 18, 2022
@mityax mityax linked a pull request Jan 22, 2022 that will close this issue
@fbernaly
Copy link

I noticed that most of the APIs in this plugin are only implemented for Android, and not for iOS, this other plugin works for me: google_ml_kit and has the same functionalities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants