-
Notifications
You must be signed in to change notification settings - Fork 775
docs(ios): add dSYM Input Files step and content_hash_mismatch troubleshooting #16165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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) | ||
| ``` | ||
|
|
||
| This ensures the upload script runs after dSYM generation is complete. | ||
|
|
||
| </Step> | ||
|
|
||
| <Step title="Optional: Include source code context" badge="optional"> | ||
|
|
@@ -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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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)
|
||

There was a problem hiding this comment.
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?