sentry-react-native
                                
                                 sentry-react-native copied to clipboard
                                
                                    sentry-react-native copied to clipboard
                            
                            
                            
                        Multiple commands produce PrivacyInfo.xcprivacy
OS:
- [ ] Windows
- [x] MacOS
- [ ] Linux
Platform:
- [x] iOS
- [ ] Android
SDK:
- [x]  @sentry/react-native(>= 1.0.0)
- [ ]  react-native-sentry(<= 0.43.2)
SDK version: 5.19.0
react-native version: 0.73.4
Are you using Expo?
- [ ] Yes
- [x] No
Are you using sentry.io or on-premise?
- [x] sentry.io (SaaS)
- [ ] on-premise
If you are using sentry.io, please post a link to your issue so we can take a look:
Configuration:
(@sentry/react-native)
Sentry.init({
  dsn: 'https://[email protected]/...'
  // other options
});
I have the following issue:
Building the iOS app causes the following issue
Multiple commands produce '/Users/JohnDoe/Library/Developer/Xcode/DerivedData/AwesomeProject-ccrefsqqbzdwoefvcsygajfvyqlw/Build/Products/Debug-iphonesimulator/AwesomeProject.app/PrivacyInfo.xcprivacy'
Steps to reproduce:
- Create React Native project: npx react-native@latest init AwesomeProject
- Open AwesomeProject.xcworkspace
- Create Privacy Manifest (New -> File)
- Set target membership of the Privacy Manifest to AwesomeProject
 
- Build the app
Actual result:
Expected result:
Project builds, Privacy Manifest files get merged successfully.
@chrs1885 Thank you for the message, I was able to reproduce this in our sample app. We will keep you updated on the fix.
@brustolin The manually create PrivacyInfo.xcprivacy clashes with https://github.com/getsentry/sentry-cocoa/pull/3206
Do users have to set up something to merge the files? Or can we detect this automatically?
This will be fixed with this PR
when can we expect this to released for react native? its blocking us including a xcprivacy file in our app
@fatlinesofcode we will release a stable version of sentry-cocoa in the next few days, then we can bump the dependency and release a RN version with the fix.
I'm reopening this issue to track when the fix landed in RN.
cc @krystofwoldrich @philipphofmann
Do you know where I could find when this will make it's way into @sentry/react-native? Version 5.19.2 seems to still point to 8.20.0.
@sentry/[email protected] with the following patch helped me workaround the issue
diff --git a/node_modules/@sentry/react-native/RNSentry.podspec b/node_modules/@sentry/react-native/RNSentry.podspec
index f9eafb6..1d0fc2f 100644
--- a/node_modules/@sentry/react-native/RNSentry.podspec
+++ b/node_modules/@sentry/react-native/RNSentry.podspec
@@ -33,7 +33,7 @@ Pod::Spec.new do |s|
   s.preserve_paths = '*.js'
 
   s.dependency 'React-Core'
-  s.dependency 'Sentry/HybridSDK', '8.20.0'
+  s.dependency 'Sentry/HybridSDK', '8.21.0'
 
   s.source_files = 'ios/**/*.{h,mm}'
   s.public_header_files = 'ios/RNSentry.h'
@sentry/[email protected] will include the sentry-cocoa bump and will be released today.
@sentry/[email protected]with the following patch helped me workaround the issuediff --git a/node_modules/@sentry/react-native/RNSentry.podspec b/node_modules/@sentry/react-native/RNSentry.podspec index f9eafb6..1d0fc2f 100644 --- a/node_modules/@sentry/react-native/RNSentry.podspec +++ b/node_modules/@sentry/react-native/RNSentry.podspec @@ -33,7 +33,7 @@ Pod::Spec.new do |s| s.preserve_paths = '*.js' s.dependency 'React-Core' - s.dependency 'Sentry/HybridSDK', '8.20.0' + s.dependency 'Sentry/HybridSDK', '8.21.0' s.source_files = 'ios/**/*.{h,mm}' s.public_header_files = 'ios/RNSentry.h'
I actually tried that, I get this
 for some reason. Didn't spend much time trying to debug.
@Evan-Fisher you need update Sentry/HybridSDK explicitly
pod update Sentry/HybridSDK
@sentry/[email protected] fix this issue.
Fixed in https://github.com/getsentry/sentry-react-native/releases/tag/5.19.3, please upgrade to this or newer releases.
Hi, after upgrading to @sentry/react-native version 5.19.3 i have issues with the archiving part on fastlane (but archive works fine locally), it failed in my pipeline, and i've narrowed down that it only happens sentry-cocoa version after 8.21.0 is anyone having the same issue? thanks
Worked for me after upgrading to 5.19.3, thanks @krystofwoldrich! 🌟
checking for install build only check box in copy bundle resources under build phases can help
Getting this error after upgrading to expo SDK 51
we don't use sentry and we're still facing this issue.
Hi @julian-gargicevich,
what version of @sentry/react-native are you using? Can you try it with the latest release?
@michtntbrighte If the archive is still not working could you open a new issue with more details?
@krystofwoldrich  after updating sentry from 5.15.1 to the 5.19.3 version, issue is fixed but I am facing this issue after the update:
caused by: sentry reported an error: You do not have permission to perform this action. (http status: 403)
when I regenerated the auth token again it works fine.