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: module 'RollbarCrash.RollbarCrashThread' requires feature 'objc' #189

Open
talal7860 opened this issue Feb 16, 2024 · 7 comments
Open

Comments

@talal7860
Copy link

I'm getting this error when trying to start the application. I followed the tutorial from here.
https://docs.rollbar.com/docs/react-native. I have done exactly as documented.

@sejr1996
Copy link

sejr1996 commented Mar 7, 2024

I have the same problem.
I am using "react-native": "0.73.5" and "react": "18.2.0"

@rampantslug
Copy link

I got this issue as well
"react-native": "0.72.3"

@adityasalg
Copy link

I am facing same issue. Is there any temporary solution?

@huynhdev
Copy link

huynhdev commented Apr 24, 2024

react 18.2.0
react-native 0.73.6

# ... (your existing Podfile content)
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

linkage = ENV["USE_FRAMEWORKS"]
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end
target 'mobile' do
  use_expo_modules!

  # ... (your existing target configurations)

  pod 'RollbarReactNative', :path => '../node_modules/rollbar-react-native'


  # ... (your remaining target configurations)
end

# ... (your remaining Podfile content)

I used this command and it worked but as you see, Flipper has been disabled
USE_FRAMEWORKS=static NO_FLIPPER=1 pod install

@mtolmacs
Copy link

Try adding 'use_frameworks!" to the Podfile, or if you use Expo, you can use expo-build-properties to configure your prebuilt ios app to use static frameworks in your app.json:

{
  "expo": {
    "plugins": [
      ["expo-build-properties", {
        "ios": {
          "deploymentTarget": "14.0",
          "useFrameworks": "static",
          "extraPods": [
            {
              "name": "RollbarReactNative",
              "podspec": "../node_modules/rollbar-react-native/RollbarReactNative.podspec"
            },
            {
              "name": "RollbarReport",
              "modular_headers": true
            },
            {
              "name": "RollbarCrash",
              "modular_headers": true
            }
          ]
        }
      }]
    ],
    ...
  }
}

@catarinaguerreiro
Copy link

react 18.2.0 react-native 0.73.6

# ... (your existing Podfile content)
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

linkage = ENV["USE_FRAMEWORKS"]
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end
target 'mobile' do
  use_expo_modules!

  # ... (your existing target configurations)

  pod 'RollbarReactNative', :path => '../node_modules/rollbar-react-native'


  # ... (your remaining target configurations)
end

# ... (your remaining Podfile content)

I used this command and it worked but as you see, Flipper has been disabled USE_FRAMEWORKS=static NO_FLIPPER=1 pod install

I've done this but I'm having another error that is:

RollbarDTO.m:80:33 No known class method for selector 'rollbar_safeDataFromJSONObject:'

Does anyone knows how to fix it?
Screenshot 2024-10-16 at 12 09 36

@rarenatoe
Copy link

rarenatoe commented Oct 24, 2024

React Native 0.71.19 here

Only thing that fixed it was setting USE_FRAMEWORKS=static as @huynhdev said.

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

No branches or pull requests

8 participants