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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [firebase_crashlytics] 'Flutter/Flutter.h' file not found #5440

Closed
MATTYGILO opened this issue Mar 23, 2021 · 3 comments 路 Fixed by #5455
Closed

馃悰 [firebase_crashlytics] 'Flutter/Flutter.h' file not found #5440

MATTYGILO opened this issue Mar 23, 2021 · 3 comments 路 Fixed by #5455
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. type: bug Something isn't working

Comments

@MATTYGILO
Copy link

Bug report

When I run on iOS I get this error from Crashlytics

FLTFirebaseCrashlyticsPlugin.h:8:9: 'Flutter/Flutter.h' file not found
FLTFirebaseCorePlugin.h:8:9: 'Flutter/Flutter.h' file not found

Steps to reproduce

I am using the master channel version of flutter
I am using the master channel version of crashlytics
I am using a real device

firebase_crashlytics: git: url: git://github.com/FirebaseExtended/flutterfire path: packages/firebase_crashlytics/firebase_crashlytics

Expected behavior

To run

Additional context

Screenshot 2021-03-23 at 17 51 25

Flutter doctor

[鉁揮 Flutter (Channel master, 2.1.0-13.0.pre.199, on Mac OS X 10.15.6 19G2021
    darwin-x64, locale en-GB)
[鉁揮 Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[鉁揮 Xcode - develop for iOS and macOS
[鉁梋 Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[鉁揮 Android Studio (version 4.1)
[鉁揮 Connected device (1 available)

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

  cloud_firestore: #^1.0.1
    git:
      url: git://github.com/FirebaseExtended/flutterfire
      path: packages/cloud_firestore/cloud_firestore
  cloud_functions: #^1.0.0
    git:
      url: git://github.com/FirebaseExtended/flutterfire
      path: packages/cloud_functions/cloud_functions
  firebase_auth: #^1.0.1
    git:
      url: git://github.com/FirebaseExtended/flutterfire
      path: packages/firebase_auth/firebase_auth
  firebase_analytics: ^7.1.1
  firebase_storage: #^8.0.0
    git:
      url: git://github.com/FirebaseExtended/flutterfire
      path: packages/firebase_storage/firebase_storage
  firebase_messaging: #^9.0.0
    git:
      url: git://github.com/FirebaseExtended/flutterfire
      path: packages/firebase_messaging/firebase_messaging
  firebase_core: ^1.0.1
  firebase_dynamic_links: #^0.8.0
    git:
      url: git://github.com/FirebaseExtended/flutterfire
      path: packages/firebase_dynamic_links
  firebase_remote_config: #^0.6.0
    git:
      url: git://github.com/FirebaseExtended/flutterfire
      path: packages/firebase_remote_config/firebase_remote_config
  firebase_crashlytics: #^1.0.0
    git:
      url: git://github.com/FirebaseExtended/flutterfire
      path: packages/firebase_crashlytics/firebase_crashlytics

@MATTYGILO MATTYGILO added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Mar 23, 2021
@markusaksli-nc
Copy link
Contributor

markusaksli-nc commented Mar 24, 2021

Why are you depending on everything from git? If a commit here breaks the version on master and you upgrade to it you will see random build failures in your project.

Does the issue persist if you use the latest pub versions instead?

@markusaksli-nc markusaksli-nc added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Mar 24, 2021
@jmagman
Copy link
Contributor

jmagman commented Mar 24, 2021

firebase_crashlytics.podspec is missing s.dependency 'Flutter'
https://github.com/FirebaseExtended/flutterfire/blob/09277c49bb3a10208a2e117d149a4fbffc9bfb7a/packages/firebase_crashlytics/firebase_crashlytics/ios/firebase_crashlytics.podspec#L33-L34

flutter/flutter#78592 stopped trying to link Flutter to pods that don't declare it as a dependency. Also reported in duplicate flutter/flutter#78969.

@jmagman
Copy link
Contributor

jmagman commented Mar 24, 2021

That's the only podspec I see that's missing s.dependency 'Flutter' or s.dependency 'FlutterMacOS'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants