Xcode archive not creating DSYM file

25,695

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:

no dsym

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

generate target.dSYM

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

check this out: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html

Share:
25,695

Related videos on Youtube

belsokar
Author by

belsokar

Updated on December 21, 2021

Comments

  • belsokar
    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
      derpoliuk over 5 years
      In 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-amlcnmxbghcsrc‌​frhbmvsfyjbins/Build‌​/Intermediates.noind‌​ex/ArchiveIntermedia‌​tes/PROJECT_NAME/Bui‌​ldProductsPath/TARGE‌​T_NAME-iphoneos/APP_‌​NAME.app.dSYM
  • Jarson
    Jarson over 9 years
    The Log Navigator is also known as the Report Navigator
  • James Boutcher
    James Boutcher over 8 years
    Confused 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
    Konstantinos Gaitanis over 8 years
    What 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
    Valentin Shergin almost 8 years
    Anybody, please, describe how can it be related to dSYMs!
  • nikans
    nikans almost 8 years
    This applies only if dSYM has in fact been generated, and in an expected place.
  • Ash
    Ash almost 8 years
    Answer really needs to be removed. The question isn't "where to find dSYM?"
  • balkaran singh
    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
    Sasho over 3 years
    I was going to add the same answer, just +1ed yours. :)