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

iOS: No visible @interface for 'SentryClient' #32

Closed
Gp2mv3 opened this issue Apr 10, 2017 · 10 comments
Closed

iOS: No visible @interface for 'SentryClient' #32

Gp2mv3 opened this issue Apr 10, 2017 · 10 comments
Assignees

Comments

@Gp2mv3
Copy link

Gp2mv3 commented Apr 10, 2017

Hi guys,
After adding the plugin to my app, I receive this error at build:

node_modules/react-native-sentry/ios/RNSentry.m:239:28: No visible @interface for 'SentryClient' declares the selector 'reportReactNativeCrashWithError:stacktrace:terminateProgram:'
node_modules/react-native-sentry/ios/RNSentry.m:249:32: No visible @interface for 'SentryClient' declares the selector 'reportReactNativeCrashWithError:stacktrace:terminateProgram:'

I'm building with target 9.3 and had issues with the Signing for Framework (which is now solved).

Do you have a solution ?

Thanks !

@HazAT HazAT self-assigned this Apr 10, 2017
@HazAT
Copy link
Member

HazAT commented Apr 10, 2017

Hey, did you change anything in RNSentry.m this error seems weird.
Also did you make sure you did everything stated here? https://docs.sentry.io/clients/react-native/#xcode-build-settings

@Gp2mv3
Copy link
Author

Gp2mv3 commented Apr 10, 2017

Yes I followed this (which doesn't help much for the Signin error though... see issue #3 ).
I only commented those two lines to continue working...

Where is SentryClient defined normally ?

@HazAT
Copy link
Member

HazAT commented Apr 10, 2017

It's located here (see screenshot), but there is something funky with your build process. The swift file should generate a Sentry-Swift.h which should contain

- (void)reportReactNativeCrashWithError:(NSError * _Nonnull)error stacktrace:(NSArray * _Nonnull)stacktrace terminateProgram:(BOOL)terminateProgram;

sentry_swift

@Gp2mv3
Copy link
Author

Gp2mv3 commented Apr 10, 2017

Here is my build log with the error.
I didn't change anything except what's in the link you sent before...
log.txt

@neilakoh
Copy link

Install/Uninstall package many times then install/uninstall Pods many times (including removing Podfile.lock and package.lock) then clean xcode many times and then restart mac many times . . NOTHING WORKED . .

So decided to bump down the version from Sentry 2.0.0 to 1.8.2

and it worked! Finally, build successfully...

@gebsl
Copy link

gebsl commented Nov 16, 2020

@neilakoh thanks for the hint! Version 2.0.0 didn't work but after downgrading to 1.9.0 it worked flawlessly.

@todorone
Copy link

todorone commented Nov 16, 2020

@gebsl @neilakoh No need to downgrade, please look at this comment for workaround - #1186 (comment)

@neilakoh
Copy link

@todorone - yes it worked and it said "This is probably the cleanest workaround until whatever is wrong is fixed.". I will just wait for that fix since I want to avoid workarounds as much as possible.

@muratozgul
Copy link

Upgrading to 2.0.2 seems to fix it.
(I deleted node_modules and Podfile.lock and installed everything again, just to be safe)

@messycoding
Copy link

This also works while using version 2.0.0

#1186 (comment)

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

7 participants