Skip to content

Commit 0bdfbb5

Browse files
ci: Update shell script for uploading debug symbols to include sources
1 parent 8fbb892 commit 0bdfbb5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

MiddleDrag.xcodeproj/project.pbxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,14 @@
216216
/* Begin PBXShellScriptBuildPhase section */
217217
EC3F44142EDE5CBB00BD36A8 /* Upload Debug Symbols & Source Context */ = {
218218
isa = PBXShellScriptBuildPhase;
219+
alwaysOutOfDate = 1;
219220
buildActionMask = 2147483647;
220221
files = (
221222
);
222223
inputFileListPaths = (
223224
);
224225
inputPaths = (
226+
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${EXECUTABLE_NAME}",
225227
);
226228
name = "Upload Debug Symbols & Source Context";
227229
outputFileListPaths = (
@@ -230,7 +232,7 @@
230232
);
231233
runOnlyForDeploymentPostprocessing = 0;
232234
shellPath = /bin/sh;
233-
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif [[ \"$(uname -m)\" == arm64 ]]; then\n export PATH=\"/opt/homebrew/bin:$PATH\"\nfi\nif which sentry-cli >/dev/null; then\nexport SENTRY_ORG=karan-mohindroo\nexport SENTRY_PROJECT=apple-macos\nERROR=$(sentry-cli debug-files upload \\\n-include-sources \\\n\"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n";
235+
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif [[ \"$(uname -m)\" == arm64 ]]; then\n export PATH=\"/opt/homebrew/bin:$PATH\"\nfi\nif which sentry-cli >/dev/null; then\nexport SENTRY_ORG=karan-mohindroo\nexport SENTRY_PROJECT=apple-macos\nERROR=$(sentry-cli debug-files upload \\\n--include-sources \\\n\"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n";
234236
};
235237
/* End PBXShellScriptBuildPhase section */
236238

0 commit comments

Comments
 (0)