Xcode archive not creating DSYM file
Solution 1
Identifying the problem
As @belsokar suggested, check the Report Navigator.
In my case, the dSYM file has not been generated, and there hasn't been a corresponding line that goes like "Generate Appname.dSYM ...in {path}"
But there's been Fabric installed, and it logged the fact of the dSYM file's absence:
Just filer the Report Navigator by "dSYM".
Fixing
In my case I've just had to do what I'm asked of:
DEBUG_INFORMATION_FORMAT should be set to dwarf-with-dsym for ALL configurations.
Also, it may turn out that dSYM file is being generated in an unexpected place. Check environment variables, especially DWARF_DSYM_FOLDER_PATH
and DWARF_DSYM_FILE_NAME
.
To embed the dSYM within the app bundle, just set DWARF_DSYM_FOLDER_PATH
to $(CONFIGURATION_BUILD_DIR)/$(EXECUTABLE_FOLDER_PATH)
and DWARF_DSYM_FILE_NAME
to $(EXECUTABLE_NAME).dSYM
Checking
Now the build should create dSYM for your target
Solution 2
xcode - > product -> Archive
you see Archives window
1 Select any Archives of your app Right click on it Then select show in finder
2 you see aapname.xcarchive file Right click on it and select show package contents
3 you see dSYMs folder open it and get .dSYM
file
:)
Solution 3
Try using: Deployment Postprocessing -> YES
Related videos on Youtube
belsokar
Updated on December 21, 2021Comments
-
belsokar over 2 years
For most of my projects, I setup an "archive" scheme to archive my project, creating an IPA and DSYM that I can upload to TestFlight.
However, I'm working on a more complicated project that has several targets within the project workspace, quite a few static linked libraries. I have gone through each target and set the following for all configurations:
- Deployment Postprocessing -> NO
- Strip Linked Product... -> No
- Strip Debug... -> No
- Generate Debug Symbols -> Yes
- Debug Information... -> DWARF with DSYM
I am using Xcode 4.5.2. I have done this for multitudes of projects with no issues. This is the first where something seems to be preventing the DSYM file from being created.
No matter what I try, my archive build will not generate a .DSYM file
-
derpoliuk over 5 yearsIn Xcode 10.0 dSYM files are stored in Derived Data - check Archive log in Report Navigator (
cmd+9
) as mentioned here: stackoverflow.com/a/14119376/1226304. In my case dSYM file was here:/Users/USER_NAME/Library/Developer/Xcode/DerivedData/PROJECT_NAME-amlcnmxbghcsrcfrhbmvsfyjbins/Build/Intermediates.noindex/ArchiveIntermediates/PROJECT_NAME/BuildProductsPath/TARGET_NAME-iphoneos/APP_NAME.app.dSYM
-
Jarson over 9 yearsThe Log Navigator is also known as the Report Navigator
-
James Boutcher over 8 yearsConfused at this... "Specifies whether the binary receives deployment postprocessing. Deployment postprocessing involves stripping the binary, and setting its file mode, owner, and group." ... Doesn't that mean setting this to YES would strip the binary?
-
Konstantinos Gaitanis over 8 yearsWhat exactly do you mean by check build directory configs? I have the same problem on a multi-target project (Qt). DSyms are created but not uploaded to the AppStore. How did you finally solve your problem ?
-
Valentin Shergin almost 8 yearsAnybody, please, describe how can it be related to dSYMs!
-
nikans almost 8 yearsThis applies only if dSYM has in fact been generated, and in an expected place.
-
Ash almost 8 yearsAnswer really needs to be removed. The question isn't "where to find dSYM?"
-
balkaran singh almost 8 years@Ash if you not like it's ok . but its helps some other user's that's why they give me point's.
-
Sasho over 3 yearsI was going to add the same answer, just +1ed yours. :)