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

FirebaseCoreDiagnostic.framework is a not a valid framework bundle. #4917

Closed
tmspzz opened this issue Feb 17, 2020 · 10 comments
Closed

FirebaseCoreDiagnostic.framework is a not a valid framework bundle. #4917

tmspzz opened this issue Feb 17, 2020 · 10 comments
Assignees
Labels
Carthage zip-builder Tools related to building the zip file.
Milestone

Comments

@tmspzz
Copy link

tmspzz commented Feb 17, 2020

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 10.2
  • Firebase SDK version: 6.9.0
  • Firebase Component: FirebaseCoreDiagnostic
  • Component version: N/A
  • Installation method: Carthage

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

Binary distribution with carthage is not working. The framework bundle is missing it's Info.plist

Relevant Code:

Screenshot 2020-02-17 at 23 01 38

@google-oss-bot

This comment has been minimized.

@paulb777
Copy link
Member

I see that the Info.plist is missing, but our tests are still passing without it. What issue are you seeing?

Did you see the instruction about not adding any of the Firebase frameworks to the Carthage build phase at https://github.com/firebase/firebase-ios-sdk/blob/master/Carthage.md?

@tmspzz
Copy link
Author

tmspzz commented Feb 18, 2020

Thanks for the quick response. You're definitely right, this doesn't happen on the current carthage release.

I have already added a workaround to the upcoming xcframework support branch. However the workaround is speculative as carthage will try to read the macho filetype of FirebaseCoreDiagnostic and default to .framework on success.

The issue is that there no good way for carthage to tell what kind of bundle it's dealing with if there is no Info.plist.

Adding the .plist would make distributing Firebase via carthage more resilient.

@paulb777
Copy link
Member

@tmpspzz Point taken. FirebaseCoreDiagnostic should be consistent with the other frameworks and have an Info.plist. We'll investigate. Thanks!

@paulb777 paulb777 added the zip-builder Tools related to building the zip file. label Feb 18, 2020
@DevAndArtist
Copy link

DevAndArtist commented Mar 9, 2020

Just run into the similar issue. I was trying if I can drop pods in our project and use Crashlytics/Analytics trough Carthage until we can use SPM. Cocoapods give me too many headaches.

Had to revert back to use cocoa pods as I have no clue how to resolve this issue.

@paulb777
Copy link
Member

paulb777 commented Mar 9, 2020

@DevAndArtist While it's clear there's a consistency problem, we haven't seen the issue prevent anything from working. How is it not working for you?

@DevAndArtist
Copy link

@paulb777 when I try running the project in the simulator I get an error prompt from Xcode 11.3.1 before it can launch the app that this particular framework is missing the Info.plist file. It compiles, but I can't run the application if I use this setup.

@paulb777
Copy link
Member

paulb777 commented Mar 9, 2020

@DevAndArtist Thanks. We'll take a look. It might be something with the recent Xcode version. In the meantime a workaround might be to exclude FirebaseCoreDiagnostic.framework.

@paulb777 paulb777 self-assigned this Mar 9, 2020
@paulb777 paulb777 added this to the 6.20.0 - M67 milestone Mar 9, 2020
@paulb777
Copy link
Member

Fixed and will be available in the upcoming 6.21.0 release.

@firebase firebase locked and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Carthage zip-builder Tools related to building the zip file.
4 participants