invertase / firestore-ios-sdk-frameworks

⚡ Precompiled Firestore iOS SDKs extracted from the Firebase iOS SDK repository release downloads for faster build times.
Apache License 2.0
448 stars 49 forks source link

Failed to build v11.0.0 #108

Closed victortive closed 3 months ago

victortive commented 3 months ago
[!] CocoaPods could not find compatible versions for pod "Firebase/Messaging":
  In Podfile:
    Firebase/Messaging

    firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) was resolved to 15.1.0, which depends on
      Firebase/Messaging (= 11.0.0)

CocoaPods could not find compatible versions for pod "nanopb":
  In Podfile:
    FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `11.0.0`) was resolved to 11.0.0, which depends on
      FirebaseFirestoreBinary (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseFirestoreInternalBinary (= 11.0.0) was resolved to 11.0.0, which depends on
          nanopb (< 2.30911.0, >= 2.30908.0)

    firebase_in_app_messaging (from `.symlinks/plugins/firebase_in_app_messaging/ios`) was resolved to 0.8.0-5, which depends on
      Firebase/InAppMessaging (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseInAppMessaging (~> 11.0.0-beta) was resolved to 11.0.0-beta, which depends on
          nanopb (~> 3.30910.0)
plungepool commented 3 months ago

Experiencing same issue, seems recent as of this morning PST.

Blackkadder commented 3 months ago

same here. can't resolve nanopb dependency

Blackkadder commented 3 months ago
image

working with 10.29.0 with firebase_core 3.3.0 works though

plungepool commented 3 months ago

@Blackkadder This is working for us! Thanks!!

Lyokone commented 3 months ago

Hi, thanks for reporting. I'm currently building the version with the fix, should be out in about an hour.

Lyokone commented 3 months ago

Might take a bit more time than expected, a new version of the iOS SDK was released in parallel (11.1.0) which means we will need to update some other things. In the mean time you can remove this line from your Podfile

  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "11.0.0"

Sorry for the inconvenience, working on the fix

Lyokone commented 3 months ago

Fix has been pushed, Cocoapods might need a bit of time to surface it through its CDN. I'll keep this issue open for the time being.

amrgetment commented 3 months ago

after 16 hours

firebase_performance: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "nanopb":
  In Podfile:
    FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `11.0.0`) was resolved to 11.0.0, which depends on
      FirebaseFirestoreBinary (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseFirestoreInternalBinary (= 11.0.0) was resolved to 11.0.0, which depends on
          nanopb (< 2.30911.0, >= 2.30908.0)

    firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) was resolved to 15.1.0, which depends on
      Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseMessaging (~> 11.0.0) was resolved to 11.0.0, which depends on
          nanopb (~> 3.30910.0)
btanev commented 3 months ago

Hi @Lyokone Still facing the same issue as yesterday. I've tried:

[!] CocoaPods could not find compatible versions for pod "nanopb":
  In Podfile:
    FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, commit `58e6c1f8b5d22464a05d97c9f607de617309e0d2`) was resolved to 11.0.0, which depends on
      FirebaseFirestoreBinary (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseFirestoreInternalBinary (= 11.0.0) was resolved to 11.0.0, which depends on
          nanopb (< 2.30911.0, >= 2.30908.0)

    firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) was resolved to 4.1.0, which depends on
      Firebase/Crashlytics (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseCrashlytics (~> 11.0.0) was resolved to 11.0.0, which depends on
          nanopb (~> 3.30910.0)
jdbenito-atco commented 3 months ago

Note that this issue is essentially a duplicate of https://github.com/firebase/flutterfire/issues/13228.

As I noted here, you can comment the pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '11.0.0' line in your Podifile. That works around the nanopb warnings but running the build scripts get the following error:

❌  /Users/xxxxxxx/.pub-cache/hosted/pub.dev/cloud_firestore-5.3.0/ios/Classes/Private/FirestorePigeonParser.h:13:4: expected a type

+ (FIRFilter *_Nonnull)filterFromJson:(NSDictionary<NSString *, id> *_Nullable)map;
  ~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

❌  /Users/xxxxxxx/.pub-cache/hosted/pub.dev/cloud_firestore-5.3.0/ios/Classes/Private/FirestorePigeonParser.h:15:4: expected a type

+ (FIRQuery *_Nonnull)parseQueryWithParameters:(nonnull PigeonQueryParameters *)parameters
   ^

❌  /Users/xxxxxxx/.pub-cache/hosted/pub.dev/cloud_firestore-5.3.0/ios/Classes/Private/FirestorePigeonParser.h:16:57: expected a type

                                     firestore:(nonnull FIRFirestore *)firestore
...

If I choose not to comment out the pod line described, I get this instead:

[!] CocoaPods could not find compatible versions for pod "FirebaseCoreExtension":
  In snapshot (Podfile.lock):
    FirebaseCoreExtension (= 11.1.0, ~> 11.0)

  In Podfile:
    FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `11.0.0`) was resolved to 11.0.0, which depends on
      FirebaseFirestoreBinary (= 11.0.0) was resolved to 11.0.0, which depends on
        FirebaseCoreExtension (= 11.0.0)

Specs satisfying the `FirebaseCoreExtension (= 11.1.0, ~> 11.0), FirebaseCoreExtension (= 11.0.0)` dependency were found, but they required a higher minimum deployment target.
marcellocamara commented 3 months ago

@amrgetment after 16 hours

If you delete this lines, from your Podfile, you can install your pods and run your app:

pod 'FirebaseFirestore', 
       :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', 
       :tag => "x.y.z"
jdbenito-atco commented 3 months ago

@amrgetment after 16 hours

If you delete this lines, from your Podfile, you can install your pods and run your app:

pod 'FirebaseFirestore', 
       :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', 
       :tag => "x.y.z"

I've already done that. Sadly I get the other error described above, i.e., the one with the ❌

avenidz commented 3 months ago

Same issue on my end right now.

Tried downgrade to firebase_core: 3.3.0 -> 10.29.0. Also shows error.

And with 11.0.0

[!] CocoaPods could not find compatible versions for pod "nanopb":

In Podfile:

FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `11.0.0`) was resolved to 11.0.0, which depends on
  FirebaseFirestoreBinary (= 11.0.0) was resolved to 11.0.0, which depends on
    FirebaseFirestoreInternalBinary (= 11.0.0) was resolved to 11.0.0, which depends on
      nanopb (< 2.30911.0, >= 2.30908.0)

firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) was resolved to 4.1.0, which depends on
  Firebase/Crashlytics (= 11.0.0) was resolved to 11.0.0, which depends on
    FirebaseCrashlytics (~> 11.0.0) was resolved to 11.0.0, which depends on
      nanopb (~> 3.30910.0)
razankv13 commented 3 months ago

@amrgetment after 16 hours

If you delete this lines, from your Podfile, you can install your pods and run your app:

pod 'FirebaseFirestore', 
       :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', 
       :tag => "x.y.z"

I've already done that. Sadly I get the other error described above, i.e., the one with the ❌

try

pod repo remove trunk
pod setup
pod install --repo-update
kostasoft commented 3 months ago

I added a constant to the Podfile $FirebaseSDKVersion = '10.29.0' and commented out the 'FirebaseFirestore' versions of the pod pod 'FirebaseFirestore' #, '~> 11.0.0'

marcellocamara commented 3 months ago

It's working for me now. You all could retry.

I've cleared my cache with pod deintegrate after trying the pod remove trunk && pod setup, and reinstalled all the pods using pod install --repo-update with this config:

pod 'FirebaseFirestore',
  :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git',
  :tag => '11.0.0'

Successfully installed pods and launched the app 👍🏻

AhsinMehmood commented 3 months ago

Its working for me now You can try pod repo remove trunk && pod setup && pod install --repo-update

Lyokone commented 3 months ago

Closing this issue since it should be solved for everyone and you have a way to reset your local pods using https://github.com/firebase/flutterfire/issues/13228#issuecomment-2325843150

Thanks all for your patience.

rohansohonee1 commented 2 months ago

@Lyokone We are facing the issue right now in the code magic build.

 CDN: trunk Relative path: Specs/0/3/5/Firebase/11.1.0/Firebase.podspec.json modified during this run! Returning local
    [!] CocoaPods could not find compatible versions for pod "Firebase/Messaging":
      In Podfile:
        Firebase/Messaging

        firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) was resolved to 15.1.0, which depends on
          Firebase/Messaging (= 11.0.0)

    CocoaPods could not find compatible versions for pod "GoogleDataTransport":
      In Podfile:
        MLKitCommon (from `MLKitCommon.podspec.json`) was resolved to 8.0.0, which depends on
          GoogleDataTransport (~> 9.0)

        firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) was resolved to 15.1.0, which depends on
          Firebase/Messaging (= 11.0.0) was resolved to 11.0.0, which depends on
            FirebaseMessaging (~> 11.0.0) was resolved to 11.0.0, which depends on
              GoogleDataTransport (~> 10.0)

Can you provide a solution for this?

bgetsug commented 2 months ago

@rohansohonee1 I also experience that on iOS. Do you use Google ML Kit via https://pub.dev/packages/google_ml_kit or one of its related packages?

There's an open issue for this on Google's Issue Tracker: https://issuetracker.google.com/issues/362452861

Unfortunately, since ML Kit is not (entirely?) open source, you may want to report or monitor these issues there. This same thing happened before in October 2022. ☹️