firebase / flutterfire

šŸ”„ A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.68k stars 3.97k forks source link

Failed to build iOS app because of required plug-in compatibility when integrating firebase_auth #2083

Closed sarbogast closed 4 years ago

sarbogast commented 4 years ago

After I added firebase_auth to my Flutter dependencies, my project builds fine on Android, but on iOS I get the following:

> Failed to build iOS app
> Error output from Xcode build:
> ā†³
>     2020-02-28 23:25:34.444 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/RealmPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.444 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/RealmBrowser.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.445 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/QuickLocalization.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.445 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMQuickHelp.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.445 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.446 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Lin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.446 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/KZLinkedConsole.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.446 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/KSImageNamed.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.447 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/GitDiff.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.447 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FuzzyAutocomplete.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.448 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ExtractorLocalizableStrings.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.448 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.448 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CocoaPodUI.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.449 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CocoaPods.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.449 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     2020-02-28 23:25:34.449 xcodebuild[91612:6065439] [MT] PluginLoading: Required plug-in compatibility UUID BAB79788-ACEE-4291-826B-EC4667A6BEC5 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AdjustFontSize.xcplugin' not present in DVTPlugInCompatibilityUUIDs
>     ** BUILD FAILED **
> 
> 
> Xcode's output:
> ā†³
>     1 error generated.
>     note: Using new build system
>     note: Planning build
>     note: Constructing build description
> 
> Could not build the application for the simulator.
> Error launching application on iPad Pro (12.9-inch) (3rd generation).

Note that I didn't add any dependency on google_sign_in because I don't need Google Sign In, I'm only going to use email/password authentication and I don't want to add dependencies I'm not going to use. And I tried to add google_sign_in but I had even more build errors.

Here is my flutter doctor output:

> % flutter doctor -v
> [āœ“] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.3 19D76, locale en-FR)
>     ā€¢ Flutter version 1.12.13+hotfix.8 at /Users/sarbogast/Applications/flutter
>     ā€¢ Framework revision 0b8abb4724 (2 weeks ago), 2020-02-11 11:44:36 -0800
>     ā€¢ Engine revision e1e6ced81d
>     ā€¢ Dart version 2.7.0
> 
> [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
>     ā€¢ Android SDK at /Users/sarbogast/Library/Android/sdk
>     ā€¢ Android NDK location not configured (optional; useful for native profiling support)
>     ā€¢ Platform android-29, build-tools 29.0.3
>     ā€¢ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
>     ā€¢ Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
>     āœ— Android license status unknown.
>       Try re-installing or updating your Android SDK Manager.
>       See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
> 
> [āœ“] Xcode - develop for iOS and macOS (Xcode 11.3.1)
>     ā€¢ Xcode at /Applications/Xcode.app/Contents/Developer
>     ā€¢ Xcode 11.3.1, Build version 11C504
>     ā€¢ CocoaPods version 1.8.4
> 
> [āœ“] Android Studio (version 3.6)
>     ā€¢ Android Studio at /Applications/Android Studio.app/Contents
>     ā€¢ Flutter plugin version 43.0.2
>     ā€¢ Dart plugin version 192.7761
>     ā€¢ Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
> 
> [!] Android Studio (version 3.5)
>     ā€¢ Android Studio at /Users/sarbogast/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.6010548/Android Studio.app/Contents
>     āœ— Flutter plugin not installed; this adds Flutter specific functionality.
>     āœ— Dart plugin not installed; this adds Dart specific functionality.
>     ā€¢ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
> 
> [!] IntelliJ IDEA Ultimate Edition (version 2019.3.2)
>     ā€¢ IntelliJ at /Users/sarbogast/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
>     āœ— Flutter plugin not installed; this adds Flutter specific functionality.
>     āœ— Dart plugin not installed; this adds Dart specific functionality.
>     ā€¢ For information about installing plugins, see
>       https://flutter.dev/intellij-setup/#installing-the-plugins
> 
> [āœ“] VS Code (version 1.41.1)
>     ā€¢ VS Code at /Applications/Visual Studio Code.app/Contents
>     ā€¢ Flutter extension version 3.8.0
> 
> [āœ“] Connected device (3 available)
>     ā€¢ Android SDK built for x86             ā€¢ emulator-5554                        ā€¢ android-x86 ā€¢ Android 10 (API 29) (emulator)
>     ā€¢ iPhone 11 Pro                         ā€¢ E3F0F390-2308-4583-9234-505537BFA28F ā€¢ ios         ā€¢ com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
>     ā€¢ iPad Pro (12.9-inch) (3rd generation) ā€¢ A379A64B-85C6-49F8-9DC2-041B4C5B1E26 ā€¢ ios         ā€¢ com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
> 
> ! Doctor found issues in 3 categories.
iapicca commented 4 years ago

Hi @sarbogast can you please provide your flutter run --verbose and your pubspec.yaml or if possible a reproducible minimal code sample. Thank you

sarbogast commented 4 years ago

Apparently the problem was related to the UserAgent.h problem, so I forced a downgrade of firebase_core to 0.4.4 and it works with that.

iapicca commented 4 years ago

Hi @sarbogast I'm glad you fixed the issue thank you for letting me know