From da92885ea7b6169e2ac3f2acc0a063ec4311d305 Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Fri, 3 Apr 2026 13:02:20 +0200 Subject: [PATCH 1/2] docs(ios): add dSYM input files step and content_hash_mismatch troubleshooting --- .../docs/error-tracking/upload-source-maps/ios.mdx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/contents/docs/error-tracking/upload-source-maps/ios.mdx b/contents/docs/error-tracking/upload-source-maps/ios.mdx index 9df612836dc4..7ca524f65480 100644 --- a/contents/docs/error-tracking/upload-source-maps/ios.mdx +++ b/contents/docs/error-tracking/upload-source-maps/ios.mdx @@ -72,6 +72,13 @@ Add a **Run Script** build phase: 3. Click the **+** button and select **New Run Script Phase** 4. Make sure it's set to run last (after "Copy Bundle Resources" or similar) 5. Add the appropriate script for your package manager: +6. In the **Input Files** section of the Run Script phase, add: + +``` +$(DWARF_DSYM_FOLDER_PATH)/$(DWARF_DSYM_FILE_NAME) +``` + +This ensures the upload script runs after dSYM generation is complete. @@ -192,4 +199,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). \ No newline at end of file +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. \ No newline at end of file From d6664d636be8ce027176b4cd0709b70a6113c68f Mon Sep 17 00:00:00 2001 From: Hugues Pouillot Date: Fri, 3 Apr 2026 13:03:19 +0200 Subject: [PATCH 2/2] docs(ios): move input files step after script example --- .../error-tracking/upload-source-maps/ios.mdx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/contents/docs/error-tracking/upload-source-maps/ios.mdx b/contents/docs/error-tracking/upload-source-maps/ios.mdx index 7ca524f65480..803b575ad417 100644 --- a/contents/docs/error-tracking/upload-source-maps/ios.mdx +++ b/contents/docs/error-tracking/upload-source-maps/ios.mdx @@ -72,13 +72,6 @@ Add a **Run Script** build phase: 3. Click the **+** button and select **New Run Script Phase** 4. Make sure it's set to run last (after "Copy Bundle Resources" or similar) 5. Add the appropriate script for your package manager: -6. In the **Input Files** section of the Run Script phase, add: - -``` -$(DWARF_DSYM_FOLDER_PATH)/$(DWARF_DSYM_FILE_NAME) -``` - -This ensures the upload script runs after dSYM generation is complete. @@ -92,6 +85,14 @@ ${PODS_ROOT}/PostHog/build-tools/upload-symbols.sh +6. In the **Input Files** section of the Run Script phase, add: + +``` +$(DWARF_DSYM_FOLDER_PATH)/$(DWARF_DSYM_FILE_NAME) +``` + +This ensures the upload script runs after dSYM generation is complete. +