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

XCode Build Error - Sentry Cocoa 6.0.8 #1186

Closed
6 of 11 tasks
ericschaal opened this issue Nov 10, 2020 · 16 comments
Closed
6 of 11 tasks

XCode Build Error - Sentry Cocoa 6.0.8 #1186

ericschaal opened this issue Nov 10, 2020 · 16 comments

Comments

@ericschaal
Copy link

ericschaal commented Nov 10, 2020

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

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?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • 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:

  • Generate a standalone RN app.
  • Integrate sentry-react-native
  • Build in release

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'
@mcchrish
Copy link

Can confirm the work around fixes the error.

@ugglr
Copy link

ugglr commented Nov 11, 2020

I have the same issue

@vitalyiegorov
Copy link

Also facing the same issue

@bergiusj
Copy link

bergiusj commented Nov 11, 2020

Facing this as well. Had no luck with the suggested workaround.

Running:

"@sentry/react-native": "^2.0.0"
"react-native": "0.62.2"

@notjulian
Copy link

notjulian commented Nov 11, 2020

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 ...

@nbolender
Copy link

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

@jennmueng
Copy link
Member

jennmueng commented Nov 12, 2020

Sentry Cocoa 6.0.8 is supposed to be used with this PR #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.

@freedomzzzii
Copy link

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",

@SahilPawar1994
Copy link

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.

@anthlasserre
Copy link

I think a PR is actually trying to fix this issue.
#1188

@sperezm97
Copy link

sperezm97 commented Nov 17, 2020

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

@RodolfoGS
Copy link

@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

@jennmueng
Copy link
Member

jennmueng commented Nov 19, 2020

This issue has been fixed in version 2.0.1. Please upgrade and don't forget to run pod install!

@diegolmello
Copy link

I can confirm 2.0.1 works. Thank you.

@ecgreb
Copy link

ecgreb commented Nov 19, 2020

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

@eridr
Copy link

eridr commented Nov 20, 2020

RNSentry 2.0.0 kept crashing but updating to 2.0.2 fixed it for me:

npm install --save @sentry/react-native

OR

yarn add @sentry/react-native

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

No branches or pull requests