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

Failed to flutter run #16

Open
ifanchu opened this issue Mar 10, 2020 · 4 comments
Open

Failed to flutter run #16

ifanchu opened this issue Mar 10, 2020 · 4 comments

Comments

@ifanchu
Copy link

ifanchu commented Mar 10, 2020

I followed the instruction all the way to the last flutter run

It failed at Running Xcode build...

    /Users/ifanchu/Projects/mlkit-custom-image-classifier/automl_mlkit/ios/Classes/AutomlMlkitPlugin.m:45:60: error: no visible @interface for 'FIRLocalModel' declares
    the selector 'initWithName:path:'
            FIRLocalModel *localModel = [[FIRLocalModel alloc] initWithName:modelName path:url.path];
                                         ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/ifanchu/Projects/mlkit-custom-image-classifier/automl_mlkit/ios/Classes/AutomlMlkitPlugin.m:46:41: error: no visible @interface for 'FIRModelManager' declares
    the selector 'registerLocalModel:'
            [[FIRModelManager modelManager] registerLocalModel:localModel];
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
    /Users/ifanchu/Projects/mlkit-custom-image-classifier/automl_mlkit/ios/Classes/AutomlMlkitPlugin.m:48:65: error: no visible @interface for
    'FIRVisionOnDeviceAutoMLImageLabelerOptions' declares the selector 'initWithRemoteModelName:localModelName:'
                [[FIRVisionOnDeviceAutoMLImageLabelerOptions alloc] initWithRemoteModelName:nil localModelName:modelName];
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3 errors generated.

I then used xcode to build it locally and saw exact same issue.

Did a little digging, the FIRLocalModel.h does not define initWithName:modekName:path.

Was I missing anything here? Please help.

@GanZhiXiong
Copy link

@ifanchu
Do you solved the problem? I also appear the same mistake, requesting support, thank you very much!😀

@GanZhiXiong
Copy link

No maintenance? I think firebase development should answer, otherwise I really will give up on using firebase 😂 😂 😂

@ifanchu
Copy link
Author

ifanchu commented Mar 31, 2020

It looks like this project is not being actively maintained, which I understand completely, just kinda sad, really want to try this out.

@ifanchu ifanchu closed this as completed Mar 31, 2020
@prakhar1989
Copy link
Contributor

prakhar1989 commented Mar 31, 2020

Hi, sorry for the late reply.. Sadly this bug fell through the cracks. Seems like we'd need to update the deps. Will update this thread when this is fixed. Thanks for understanding.

@prakhar1989 prakhar1989 reopened this Mar 31, 2020
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

No branches or pull requests

3 participants