Skip to content

RNSentry.m:64:38: too many arguments to block call, expected 1, have 3 #895

Description

@tofuyaki

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 1.4.2

react-native version: 0.59.10

$ react-native -v
react-native-cli: 2.0.1
react-native: 0.59.10

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

[Link to issue]

Configuration:

(@sentry/react-native)

Sentry.init({ 
  dsn: '',
});

I have following issue:

Build failed.

Steps to reproduce:

  • react-native run-ios

Actual result:

▸ Running script 'Start Packager'
▸ Running script 'Include RCTJSCProfiler'
▸ Compiling RNSentry.m

❌  /Users/me/src/my-app/node_modules/@sentry/react-native/ios/RNSentry.m:64:38: too many arguments to block call, expected 1, have 3

        reject(@"SentryReactNative", error.localizedDescription, error);
        ~~~~~~                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



❌  /Users/me/src/my-app/node_modules/@sentry/react-native/ios/RNSentry.m:130:42: too many arguments to block call, expected 1, have 3

            reject(@"SentryReactNative", @"Cannot serialize event", nil);
            ~~~~~~                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'RCTOneSignal' from project 'RCTOneSignal')

Expected result:

Run on simulator

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions