OS:
Platform:
SDK:
@sentry/react-native (>= 1.0.0)react-native-sentry (<= 0.43.2)SDK version: 2.0.0
react-native version: 0.63.3
Are you using Expo?
Are you using sentry.io or on-premise?
I have following issue:
My app is failing to build (release) on Xcode 12.1 since Sentry Cocoa 6.0.8 got released.
Steps to reproduce:
Actual result:
/[...]/node_modules/@sentry/react-native/ios/RNSentry.m:151:54: No visible @interface for 'SentryClient' declares the selector 'fileManager'
Expected result:
App should build without error.
Workaround:
I was able to build my app by modifying node_modules/@sentry/react-native/ios/RNSentry.podspec:
- s.dependency 'Sentry', '~> 6.0.3'
+ s.dependency 'Sentry', '6.0.7'
Can confirm the work around fixes the error.
I have the same issue
Also facing the same issue
Facing this as well. Had no luck with the suggested workaround.
Running:
"@sentry/react-native": "^2.0.0"
"react-native": "0.62.2"
I have same error and workaround works for me
edit Podfile.lock (before was 6.0.8)
- Sentry (6.0.7):
- Sentry/Core (= 6.0.7)
- Sentry/Core (6.0.7)
then
npx pod-install
maybe it is not the cleanest way ...
I was able to specify the Sentry version in my project Podfile then run pod update. This is probably the cleanest workaround until whatever is wrong is fixed.
target 'MyApp' do
pod 'Sentry', '6.0.7'
config = use_native_modules!
...
end
Sentry Cocoa 6.0.8 is supposed to be used with this PR https://github.com/getsentry/sentry-react-native/pull/1188 and wouldn't work with prior versions.
I apologize for this, next time we should explicitly state which version of Cocoa instead of using ~>
Also, the recommended workaround would be what @nbolender suggests.
I have save issue (fail on release mode but on debug mode is success)
detail error: No visible @interface for 'SentryClient' declares the selector 'fileManager'
environment:
"react": "16.13.1",
"react-native": "0.63.3",
"@sentry/react-native": "^2.0.0",
I had this same issue, I was using v.1.7.1 and after upgrading to 2.0.0, I am facing the issue "No visible @interface for 'SentryClient' declares the selector 'fileManager'"
I simply delete the RNSentry folder from ios/Pods and then again I did pod install and it was working as expected.
I think a PR is actually trying to fix this issue.
https://github.com/getsentry/sentry-react-native/pull/1188
environment:
"react": "16.13.1",
"react-native": "0.63.3",
"@sentry/react-native": "^2.0.0",
Still persists on Cocoa 6.0.9 when i try to run it using Github Actions
@freedomzzzii @SahilPawar1994 @anthlasserre @sperezm97
Add pod 'Sentry', '6.0.7' to your Podfile file. Like this:
target 'MyApp' do
pod 'Sentry', '6.0.7' # <-- Add this line
config = use_native_modules!
...
end
This issue has been fixed in version 2.0.1. Please upgrade and don't forget to run pod install!
I can confirm 2.0.1 works. Thank you.
Thanks for the quick fix!
v2.0.1 works for me as well - although I did have to run pod update Sentry after upgrading from 2.0.0 to resolve transitive dependencies on Sentry and Sentry/Core 6.0.8
just wanted to share in case anyone else runs into the same issue when running pod install
RNSentry 2.0.0 kept crashing but updating to 2.0.2 fixed it for me:
npm install --save @sentry/react-native
yarn add @sentry/react-native
Most helpful comment
I was able to specify the Sentry version in my project Podfile then run
pod update. This is probably the cleanest workaround until whatever is wrong is fixed.