split-debuginfo="packed"
create incorrect *.dSYM
bundle on macOS #13365
Open
Description
Problem
Wrong filename for the DWARF file inside the .dSYM
bundle.
Steps
-
cargo new testing
-
Add
split-debuginfo = "packed"
incargo.toml
-
cargo build
-
objdump -d target/debug/testing
target/release/testing: file format mach-o arm64 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: error: 'target/release/testing.dSYM/Contents/Resources/DWARF/testing': No such file or directory
-
ls target/release/testing.dSYM/Contents/Resources/DWARF
testing-297be036e0344749
Possible Solution(s)
Strip id when creating the debug bundle
Notes
No response
Version
cargo 1.75.0 (1d8b05cdd 2023-11-20)
release: 1.75.0
commit-hash: 1d8b05cdd1287c64467306cf3ca2c8ac60c11eb0
commit-date: 2023-11-20
host: aarch64-apple-darwin
libgit2: 1.7.1 (sys:0.18.1 vendored)
libcurl: 8.4.0 (sys:0.4.68+curl-8.4.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1u 30 May 2023
os: Mac OS 14.3.0 [64-bit]