getsentry / sentry-react-native

Official Sentry SDK for React-Native
https://sentry.io
MIT License
1.54k stars 323 forks source link

Multiple commands produce PrivacyInfo.xcprivacy [Expo] #3810

Open julian-gargicevich opened 3 weeks ago

julian-gargicevich commented 3 weeks ago

OS:

Platform:

SDK:

SDK version: 5.22.0

react-native version: 0.74.1

Are you using Expo?

Are you using sentry.io or on-premise?

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

[Description]

Steps to reproduce:

Actual result:

❌ error: Multiple commands produce '/Users/expo/Library/Developer/Xcode/DerivedData/App-fjauxkscdlvanfetgxcdeduzrxxs/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app/PrivacyInfo.xcprivacy'

⚠️ Script has ambiguous dependencies causing it to run on every build. To fix, go to: Xcode » App/App » Build Phases » 'Upload Debug Symbols to Sentry' Either: Uncheck "Based on dependency analysis", or select output files to trigger the script

Expected result:

Successful build

krystofwoldrich commented 3 weeks ago

Hi @julian-gargicevich, thank you for the message, we will investigate this.

When you mention the new config are you referring to this https://docs.sentry.io/platforms/react-native/data-management/apple-privacy-manifest/

kahest commented 3 weeks ago

Related: Expo 51 changelog entry on Apple Privacy Manifest. There is a new features to merge manifests, but this is disabled by default, so currently we wouldn't expect Expo 51 to behave differently than Expo 50.