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

[🐛] Bug Report Title - CHANGE ME #6921

Closed
supun19 opened this issue Feb 19, 2023 · 1 comment
Closed

[🐛] Bug Report Title - CHANGE ME #6921

supun19 opened this issue Feb 19, 2023 · 1 comment
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report

Comments

@supun19
Copy link

supun19 commented Feb 19, 2023

I am going to integrate firebase real-time database into to jitsi meet project
I installed
below library
"@react-native-firebase/app": "^14.12.0",
"@react-native-firebase/database": "^14.12.0",
because those libraries compatible with - Firebase/CoreOnly (8.15.0)

here is pod file

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.0'
workspace 'jitsi-meet'
$FirebaseSDKVersion = '8.15.0'

install! 'cocoapods', :deterministic_uuids => false

target 'JitsiMeet' do
  project 'app/app.xcodeproj'
 
  pod 'Firebase/Analytics', '~> 8.0'
  pod 'Firebase/Crashlytics', '~> 8.0'
  pod 'Firebase/DynamicLinks', '~> 8.0'
  pod 'Firebase/Database', '~> 8.0'
end

target 'JitsiMeetSDK' do
  project 'sdk/sdk.xcodeproj'

  # React Native and its dependencies
  #

  config = use_native_modules!
  use_react_native!(
    :path => config["reactNativePath"],
    :hermes_enabled => false,
    :fabric_enabled => false,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  # We use auto linking, but some dependencies are excluded from the lite build
  # (see react-native.config.js) so we add them here.

  pod 'giphy-react-native-sdk', :path => '../node_modules/@giphy/react-native-sdk'
  pod 'RNCalendarEvents', :path => '../node_modules/react-native-calendar-events'
  pod 'RNGoogleSignin', :path => '../node_modules/@react-native-google-signin/google-signin'
  pod 'RNWatch', :path => '../node_modules/react-native-watch-connectivity'
  pod 'RNFBApp', :path => '../node_modules/@react-native-firebase/app'
  pod 'RNFBDatabase', :path => '../node_modules/@react-native-firebase/database'

  # Native pod dependencies
  #

  pod 'CocoaLumberjack', '3.7.2'
  pod 'ObjectiveDropboxOfficial', '6.2.3'
  pod 'JitsiWebRTC', '~> 106.0.0'
end

target 'JitsiMeetSDKLite' do
    project 'sdk/sdk.xcodeproj'

    # This is a more lightweight target, which removes some functionality.
    # Check the react-native.config.js for the list of excluded packages.

    # React Native and its dependencies
    #
  
    config = use_native_modules!
    use_react_native!(
      :path => config["reactNativePath"],
      :hermes_enabled => false,
      :fabric_enabled => false,
      # An absolute path to your application root.
      :app_path => "#{Pod::Config.instance.installation_root}/.."
    )
  
    # Native pod dependencies
    #
  
    pod 'CocoaLumberjack', '3.7.2'
end

post_install do |installer|
  react_native_post_install(installer)
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
  installer.pods_project.targets.each do |target|
    # https://github.com/CocoaPods/CocoaPods/issues/11402
    if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
      target.build_configurations.each do |config|
        config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
    target.build_configurations.each do |config|
      config.build_settings['SUPPORTS_MACCATALYST'] = 'NO'
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
    end
  end
end

I am getting error

libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBLPromise HTTPBody]: unrecognized selector sent to instance 0x600000288d20'
terminating with uncaught exception of type NSException

any idea why this is occur

@supun19 supun19 added help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels Feb 19, 2023
@mikehardy
Copy link
Collaborator

We don't offer support for old library versions, sorry.
We are on v17 here and you'll need to use current versions to get support

If you use react-native-firebase, we pull these in for you, you should not specify them directly, meaning these lines would not be present, in a correct react-native-firebase integration

  pod 'Firebase/Analytics', '~> 8.0'
  pod 'Firebase/Crashlytics', '~> 8.0'
  pod 'Firebase/DynamicLinks', '~> 8.0'
  pod 'Firebase/Database', '~> 8.0'

This error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBLPromise HTTPBody]: unrecognized selector sent to instance 0x600000288d20'

Is the sort of thing you would see if code written to a version of an API before a breaking change was executed against a compiled version of an API implementation after a breaking change. That is: looks like incompatible versions.

Upgrade to current version of firebase-ios-sdk and react-native-firebase and if this still occurs, open a new issue with full details please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report
Projects
None yet
Development

No branches or pull requests

2 participants