Skip to content

[Bug]: Failed to build iOS with FBSDKCoreKit 18.0.2 #451

@deepak-agendaboa

Description

@deepak-agendaboa

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Failed to build iOS app with the below error

Swift Compiler Error (Xcode): Incorrect argument label in call (have '_:didFinishLaunchingWithOptions:', expected '_:continue:')
/Users/builder/.pub-cache/hosted/pub.dev/facebook_app_events-0.21.0/ios/Classes/SwiftFacebookAppEventsPlugin.swift:26:46

Swift Compiler Error (Xcode): Cannot convert value of type '[UIApplication.LaunchOptionsKey : Any]' to expected argument type 'NSUserActivity'
/Users/builder/.pub-cache/hosted/pub.dev/facebook_app_events-0.21.0/ios/Classes/SwiftFacebookAppEventsPlugin.swift:26:90

Swift Compiler Error (Xcode): Extra arguments at positions #3, #4 in call
/Users/builder/.pub-cache/hosted/pub.dev/facebook_app_events-0.21.0/ios/Classes/SwiftFacebookAppEventsPlugin.swift:31:62

Swift Compiler Error (Xcode): Missing argument for parameter 'options' in call
/Users/builder/.pub-cache/hosted/pub.dev/facebook_app_events-0.21.0/ios/Classes/SwiftFacebookAppEventsPlugin.swift:32:26

Swift Compiler Error (Xcode): Value of type 'Settings' has no member 'appID'
/Users/builder/.pub-cache/hosted/pub.dev/facebook_app_events-0.21.0/ios/Classes/SwiftFacebookAppEventsPlugin.swift:117:31

Swift Compiler Error (Xcode): Value of type 'Settings' has no member 'setDataProcessingOptions'
/Users/builder/.pub-cache/hosted/pub.dev/facebook_app_events-0.21.0/ios/Classes/SwiftFacebookAppEventsPlugin.swift:167:24

Expected Behavior

It should build without any error.

Steps To Reproduce

No response

Platform

iOS

Flutter Doctor

[✓] Flutter (Channel stable, 3.32.8, on macOS 15.6.1 24G90 darwin-arm64, locale en-US) [469ms]
    • Flutter version 3.32.8 on channel stable at /Users/deepakgoyal/fvm/versions/3.32.8
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision edada7c56e (4 months ago), 2025-07-25 14:08:03 +0000
    • Engine revision ef0cd00091
    • Dart version 3.8.1
    • DevTools version 2.45.1

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [3.0s]
    • Android SDK at /Users/deepakgoyal/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = /Users/deepakgoyal/Library/Android/sdk
    • Java binary at: /Users/deepakgoyal/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [1,863ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16F6
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [9ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2025.2) [8ms]
    • Android Studio at /Users/deepakgoyal/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)

[✓] VS Code (version 1.106.2) [8ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions