Skip to content

Build failed for iOS #31

@alexwestcott1

Description

@alexwestcott1

Although I've managed to implement the firebase_mlkit_language package for an Android application, I receive the following error when trying to run the application on iOS.

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done.                                            9.4s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/alexwestcott/dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_mlkit_language-1.1.2/ios/Classes/ViewModels.m:9:39: error: no visible @interface for 'FIRModelManager' declares the selector 'availableTranslateModelsWithApp:'
          [[FIRModelManager modelManager] availableTranslateModelsWithApp:FIRApp.defaultApp];
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

I've set up Firebase for the project, and it runs as expected for Android, but it's giving me this error on iOS. Any help would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions