rollbar-react-native icon indicating copy to clipboard operation
rollbar-react-native copied to clipboard

error: module 'RollbarCrash.RollbarCrashThread' requires feature 'objc'

Open talal7860 opened this issue 1 year ago • 7 comments

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.

talal7860 avatar Feb 16 '24 17:02 talal7860

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

sejr1996 avatar Mar 07 '24 15:03 sejr1996

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

rampantslug avatar Mar 21 '24 04:03 rampantslug

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

adityasalg avatar Apr 22 '24 05:04 adityasalg

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

huynhdev avatar Apr 24 '24 02:04 huynhdev

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
            }
          ]
        }
      }]
    ],
    ...
  }
}

mtolmacs avatar Apr 29 '24 14:04 mtolmacs