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

Failed to build v11.0.0 #108

Closed
victortive opened this issue Aug 27, 2024 · 20 comments · Fixed by #109
Closed

Failed to build v11.0.0 #108

victortive opened this issue Aug 27, 2024 · 20 comments · Fixed by #109
Assignees

Comments

@victortive
Copy link

[!] 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
Copy link

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

@Blackkadder
Copy link

same here. can't resolve nanopb dependency

@Blackkadder
Copy link

image

working with 10.29.0 with firebase_core 3.3.0 works though

@plungepool
Copy link

plungepool commented Aug 27, 2024

@Blackkadder This is working for us! Thanks!!

@Lyokone
Copy link
Contributor

Lyokone commented Aug 28, 2024

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

@Lyokone
Copy link
Contributor

Lyokone commented Aug 28, 2024

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 Lyokone reopened this Aug 28, 2024
@Lyokone
Copy link
Contributor

Lyokone commented Aug 28, 2024

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
Copy link

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
Copy link

btanev commented Aug 29, 2024

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

  • setting the podfile dependency to the commit hash of the updated tag 11.0.0 - pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :commit => '58e6c1f8b5d22464a05d97c9f607de617309e0d2'
  • cleaning all the cache of cocoapods - pod cache clean --all
  • cleaning Xcode's DerivedData directory
[!] 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
Copy link

jdbenito-atco commented Aug 29, 2024

Note that this issue is essentially a duplicate of firebase/flutterfire#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
Copy link

marcellocamara commented Aug 29, 2024

@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
Copy link

@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
Copy link

avenidz commented Aug 30, 2024

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
Copy link

razankv13 commented Aug 31, 2024

@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
Copy link

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
Copy link

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
Copy link

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

@Lyokone
Copy link
Contributor

Lyokone commented Sep 4, 2024

Closing this issue since it should be solved for everyone and you have a way to reset your local pods using firebase/flutterfire#13228 (comment)

Thanks all for your patience.

@Lyokone Lyokone closed this as completed Sep 4, 2024
@Lyokone Lyokone self-assigned this Sep 4, 2024
@rohansohonee1
Copy link

@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
Copy link

bgetsug commented Sep 4, 2024

@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. ☹️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

15 participants