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

[🐛] Error on Mac Catalyst - FirebaseFirestore has a minimum deployment target #7994

Open
tommycarpi opened this issue Aug 28, 2024 · 5 comments

Comments

@tommycarpi
Copy link

I'm struggling with an error I seem not to be able to solve.

Context:

  • React Native app that uses Firebase Auth and Firestore
  • Firebase versione 20.4
  • on iOS (both simulator and device) it works perfectly
  • on mac Catalyst it does not compile

this is the error:
Compiling for iOS 13.1, but module 'FirebaseFirestore' has a minimum deployment target of iOS 13.4: <...> /Build/Products/Debug-maccatalyst/FirebaseFirestore/FirebaseFirestore.framework/Modules/FirebaseFirestore.swiftmodule/arm64-apple-ios-macabi.swiftmodule

I've tried everything, from changing the XCode version to 13.4, to specify it in the Podfile as specified here:

min_ios_versions_supported = ['13.4', min_ios_version_supported]
index_of_max = min_ios_versions_supported.each_with_index.max_by { |number, _| number.to_f }[1]
platform :ios, min_ios_versions_supported[index_of_max]

....

deployment_target = '13.4'

post_install do |installer|
    # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => true
    )
    installer.generated_projects.each do |project|
      project.targets.each do |target|
          target.build_configurations.each do |config|
              config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
          end
      end
      project.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
      end
    end
end

I've also tried to downgrade to v19.3, still the same issue.

Any help?

@tommycarpi tommycarpi changed the title [🐛] Bug Report Title - CHANGE ME [🐛] Error on Mac Catalyst - FirebaseFirestore has a minimum deployment target Aug 28, 2024
@russellwheatley
Copy link
Member

Try this at top of file:

platform :ios, '13.4'

@tommycarpi
Copy link
Author

@russellwheatley unfortunately didn't work.
I tried to put it on top commenting my line:
platform :ios, min_ios_versions_supported[index_of_max]
and then executing pod install

still same error when compiling Catalyst 🥲

@russellwheatley
Copy link
Member

Have you cleaned Pods out? Try:

cd ios/
rm -rf Pods && rm Podfile.lock
pod install

@tommycarpi
Copy link
Author

Tried but still.

But I think is a bug for Catalyst, I mean the version is correct here.

Screenshot 2024-08-29 at 16 43 35

On iOS it works, on Catalyst throws this ...

Screenshot 2024-08-29 at 16 44 56

@tommycarpi
Copy link
Author

The issue was with the XCode Beta. Using XCode v15.4 does not cause the issue.

This one does instead, for unknown reasons.

Screenshot 2024-08-30 at 00 44 50

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

No branches or pull requests

2 participants