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

[firebase_ml_vision] can't build for iOS #39044

Closed
p30arena opened this issue Aug 22, 2019 · 5 comments
Closed

[firebase_ml_vision] can't build for iOS #39044

p30arena opened this issue Aug 22, 2019 · 5 comments

Comments

@p30arena
Copy link
Contributor

p30arena commented Aug 22, 2019

@bparrishMines

Xcode Version 9.3.1 (9E501)
Swift 4.1
platform :ios, '10'

firebase_ml_vision 0.9.2
pod 'Firebase/MLVisionFaceModel'

flutter run -d "iPhone 8"

Xcode's output:
↳
    === BUILD TARGET GoogleMobileVision-GoogleMVFaceDetectorResources OF PROJECT
    Pods WITH CONFIGURATION Debug ===
    /Users/alies/Documents/lab/gilda-lab/rayban/ios/Pods/GoogleDataTransport/Goo
    gleDataTransport/GDTLibrary/GDTStorage.m:118:41: error: no known class
    method for selector
    'archivedDataWithRootObject:requiringSecureCoding:error:'
            NSData *data = [NSKeyedArchiver archivedDataWithRootObject:self
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/alies/Documents/lab/gilda-lab/rayban/ios/Pods/GoogleDataTransport/Goo
    gleDataTransport/GDTLibrary/GDTStorage.m:215:24: error: no known class
    method for selector 'unarchivedObjectOfClass:fromData:error:'
        [NSKeyedUnarchiver unarchivedObjectOfClass:[GDTStorage class]
        fromData:data error:nil];
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           ~~~~~~~~~
    /Users/alies/Documents/lab/gilda-lab/rayban/ios/Pods/GoogleDataTransport/Goo
    gleDataTransport/GDTLibrary/GDTStorage.m:227:39: error: no known class
    method for selector
    'archivedDataWithRootObject:requiringSecureCoding:error:'
          NSData *data = [NSKeyedArchiver archivedDataWithRootObject:self
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/alies/Documents/lab/gilda-lab/rayban/ios/Pods/GoogleDataTransport/Goo
    gleDataTransport/GDTLibrary/GDTStorage.m:255:37: error: no known class
    method for selector
    'archivedDataWithRootObject:requiringSecureCoding:error:'
        NSData *data = [NSKeyedArchiver archivedDataWithRootObject:self
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    4 errors generated.

Could not build the application for the simulator.
Error launching application on iPhone 8.

flutter doctor -v

[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.13.6 17G65, locale
    en-US)
    • Flutter version 1.7.8+hotfix.4 at /Users/alies/Development/flutter
    • Framework revision 20e59316b8 (5 weeks ago), 2019-07-18 20:04:33 -0700
    • Engine revision fee001c93f
    • Dart version 2.4.0

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/setup/#android-setup for detailed
      instructions).
      If the Android SDK has been installed to a custom location, set
      ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.


[✓] Xcode - develop for iOS and macOS (Xcode 9.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3.1, Build version 9E501
    • CocoaPods version 1.7.5

[!] iOS tools - develop for iOS devices
    ✗ Verify that all connected devices have been paired with this computer in
      Xcode.
      If all devices have been paired, libimobiledevice and ideviceinstaller may
      require updating.
      To update with Brew, run:
        brew update
        brew uninstall --ignore-dependencies libimobiledevice
        brew uninstall --ignore-dependencies usbmuxd
        brew install --HEAD usbmuxd
        brew unlink usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    • ios-deploy 1.9.2
    ✗ ios-deploy out of date (1.9.4 is required). To upgrade with Brew:
        brew upgrade ios-deploy

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed
      instructions).

[✓] Connected device (1 available)
    • iPhone 8 • E2D5000F-BE7E-4E88-A96B-0D4709617AE1 • ios • iOS 11.3
      (simulator)

! Doctor found issues in 3 categories.
@p30arena p30arena changed the title [firebase_ml_vision] can't build on iOS [firebase_ml_vision] can't build for iOS Aug 22, 2019
@p30arena
Copy link
Contributor Author

I had to upgrade Xcode

@MOZPIT
Copy link

MOZPIT commented Aug 28, 2019

I updated Xcode and still getting the same issue. Would you mind sharing what else you did?

Thanks in advance.

Mo.

@p30arena
Copy link
Contributor Author

@MOZPIT
I upgraded Xcode from 9.4 to 10.2, then the issue was resolved, but,
you might want to create a new project.

@yasinarik
Copy link

I am getting the same error too.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants