flutter_facebook_sdk icon indicating copy to clipboard operation
flutter_facebook_sdk copied to clipboard

I have a bug when I running in dev mode in flutter command line tool, Macbook arch x86_64

Open cassiosousa opened this issue 3 years ago • 0 comments

Hi, I'm trying to run the project with command line or VSCode and I got an error! But when I run it in iOS simulator, but to run in production it's ok.

→ flutter run --flavor dev -t lib/mains/main_dev.dart                                                                                                                                                                [20e0b549]
Changing current working directory to: /Users/cassio/dev/git/mambo/flutter-app-src
Launching lib/mains/main_dev.dart on iPhone 12 Pro in debug mode...
Running Xcode build...                                                  
Xcode build done.                                            8,1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    /Users/cassio/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_sdk-1.0.0/ios/Classes/SwiftFlutterFacebookSdkPlugin.swift:3:8: error: could not find module 'FBSDKCoreKit' for target 'arm64-apple-ios-simulator'; found:
    x86_64-apple-ios-simulator, x86_64
    import FBSDKCoreKit
           ^
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete

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

  • Flutter doctor
→ flutter doctor                                                                                                                                                                                                     [20e0b549]
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.4 20F71 darwin-x64, locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] Android Studio (version 4.2)
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2020.3.3)
[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
[✓] VS Code (version 1.60.2)
[✓] Connected device (2 available)

• No issues found!

There is a trick to run on command line ?

I run the project in a MacBook arch x86_64.

cassiosousa avatar Sep 29 '21 18:09 cassiosousa