Skip to content

Commit 53cd1ee

Browse files
Add info about xcode cloud source maps uploads (#6488)
1 parent 33b45c2 commit 53cd1ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/platforms/react-native/troubleshooting.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ If you're using `React Navigation 5` and you're not receiving transactions anymo
171171

172172
If you experience mismatched line numbers on [sentry.io](https://sentry.io) when using RAM Bundles, this is due to a [bug](https://github.com/facebook/metro/issues/399) on the Metro tooling.
173173

174+
## Uploading source maps from Xcode Could
175+
176+
The Xcode integration reads `dist` from `CFBundleVersion` but Xcode Cloud builds use `CI_BUILD_NUMBER` variable. Add the following code to `Bundle React Native code and images` build phase to enable correct source maps uploads.
177+
178+
```
179+
export SENTRY_DIST=$CI_BUILD_NUMBER
180+
```
181+
174182
## Set Up SKD v4 With React Native 0.69 or Higher
175183

176184
To install an older version of the `@sentry/react-native`, you'll need to specify it in the install command. Similarly, you'll need to use a compatible `@sentry/wizard`, as shown in the script below.

0 commit comments

Comments
 (0)