leavez / cocoapods-binary

integrate pods in form of prebuilt frameworks conveniently, reducing compile time
MIT License
1.31k stars 206 forks source link

Firebase pod won't work #57

Open nightfall708 opened 5 years ago

nightfall708 commented 5 years ago

Hi,

I've worked on this for a while having all sorts of errors, finally isolated the issue and found out that I can't make this work for the Firebase pod.

pepejeria commented 5 years ago

I have the following in my Podfile:

  pod 'Firebase/Core', :binary => true
  pod 'Firebase/Firestore', :binary => true
  pod 'Firebase/Auth', :binary => true

And this results in [!] Binary doesn't support pods who integrate in 2 or more platforms simultaneously: ["Firebase"]

leavez commented 5 years ago

@gerbil802 I didn't find any problems. This is my demo. Would you please provide a demo with problems. crashlytics3.zip

leavez commented 5 years ago

@pepejeria That's another problem. It seems it you use Firebase in different platform targets, like an iOS target and a watch app target. This plugin doesn't support it right now. 😂 It's maybe a goal of next major version. For now, a workaround, you should set :binary => false for pod which are used in different platforms. Sub pods are considered to be as one pod.

leavez commented 5 years ago

🚀 Prebuild frameworks Analyzing dependencies Downloading dependencies Installing BoringSSL-GRPC (0.0.2) Installing Firebase (5.20.2) Installing FirebaseAnalytics (5.8.1) Installing FirebaseAuth (5.4.2) Installing FirebaseAuthInterop (1.0.0) Installing FirebaseCore (5.4.1) Installing FirebaseFirestore (1.2.1) Installing FirebaseInstanceID (3.8.1) Installing GTMSessionFetcher (1.2.1) Installing GoogleAppMeasurement (5.8.1) Installing GoogleUtilities (5.7.0) Installing Masonry (1.1.0) Installing Protobuf (3.7.0) Installing gRPC-C++ (0.0.6) Installing gRPC-Core (1.17.0) Installing leveldb-library (1.20) Installing nanopb (0.3.901) Generating Pods project Sending stats Prebuild frameworks (total 16) Prebuilding FirebaseAuth... Prebuilding FirebaseCore... Prebuilding GoogleUtilities... Prebuilding GTMSessionFetcher... Prebuilding FirebaseInstanceID... Prebuilding nanopb... Prebuilding FirebaseFirestore... Prebuilding gRPC-C++... Prebuilding gRPC-Core... Prebuilding BoringSSL-GRPC... Prebuilding leveldb-library... Prebuilding Protobuf...

🤖 Pod Install Analyzing dependencies Downloading dependencies Installing BoringSSL-GRPC (0.0.2) Installing Firebase (5.20.2) Using FirebaseAnalytics (5.8.1) Installing FirebaseAuth (5.4.2) Installing FirebaseAuthInterop (1.0.0) Using FirebaseCore (5.4.1) Installing FirebaseFirestore (1.2.1) Using FirebaseInstanceID (3.8.1) Installing GTMSessionFetcher (1.2.1) Using GoogleAppMeasurement (5.8.1) Using GoogleUtilities (5.7.0) Using Masonry (1.1.0) Installing Protobuf (3.7.0) Installing gRPC-C++ (0.0.6) Installing gRPC-Core (1.17.0) Installing leveldb-library (1.20) Using nanopb (0.3.901) Generating Pods project Integrating client project Sending stats Pod installation complete! There are 4 dependencies from the Podfile and 17 total pods installed.

[!] Unable to read the license file LICENSE for the spec GTMSessionFetcher (1.2.1)

[!] Unable to read the license file LICENSE for the spec GoogleUtilities (5.7.0)

[!] Unable to read the license file LICENSE for the spec GTMSessionFetcher (1.2.1)

[!] Unable to read the license file LICENSE for the spec GoogleUtilities (5.7.0)

icedice commented 5 years ago

Might be related to this, the precompiled firestore framework ends as a whopping 246mb when I precompile it, I only have one iOS target though. Any idea what's going on?

AstroDule commented 4 years ago

Confirmed, does not work with:

  firebase_core: ^0.4.0+9
  firebase_auth: ^0.14.0+5
  firebase_messaging: ^5.1.6
muddsar commented 4 years ago

Any update on this issue, if it is working with some workaround or with some newer versions?

carlosmellado commented 3 years ago

Same is happening to me. Lots of pods works with :binary => true, but it starts failing when I set :binary => true to Firebase pods.

Any thoughts?

Xendrez commented 3 years ago

Same issue here. Was working before though. Not sure what I changed except updated cocoapods to latest version? Does anyone have a fix?

abdulla-allaith commented 2 years ago

+1 Any chance to allow precompiling for Firebase pods? Firebase pods (even without Firestore) take a lot of build time, it would be VERY useful if they could be prebuilt!