Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion contents/docs/error-tracking/upload-source-maps/ios.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ ${PODS_ROOT}/PostHog/build-tools/upload-symbols.sh

</MultiLanguage>

6. In the **Input Files** section of the Run Script phase, add:

```
$(DWARF_DSYM_FOLDER_PATH)/$(DWARF_DSYM_FILE_NAME)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${EXECUTABLE_NAME}

When I tested, this worked as well. Why not look at executable's dsym alone?

```

This ensures the upload script runs after dSYM generation is complete.

</Step>

<Step title="Optional: Include source code context" badge="optional">
Expand Down Expand Up @@ -192,4 +200,8 @@ Ensure `ENABLE_USER_SCRIPT_SANDBOXING` is set to `NO` in your build settings.

### dSYMs not being generated

Verify that `DEBUG_INFORMATION_FORMAT` is set to **DWARF with dSYM File** for the configuration you're building (Debug or Release).
Verify that `DEBUG_INFORMATION_FORMAT` is set to **DWARF with dSYM File** for the configuration you're building (Debug or Release).

### Script fails with "content_hash_mismatch"

This happens when the upload script runs before Xcode finishes generating the dSYM files. Add `$(DWARF_DSYM_FOLDER_PATH)/$(DWARF_DSYM_FILE_NAME)` to the **Input Files** of the Run Script build phase — this tells Xcode to complete dSYM generation before running the upload script.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that Input files just prevent the script from running until this file has changed. So not sure how correct this explanation here is?

If that's the case, then we should probably also mention checking "Based on dependency analysis" as well (which is the default when adding a new Run Script phase)

Image

Loading