43

Can you please let me know how can I create .dSYM file using XCode 4?

Thanks!

meetpd
  • 9,150
  • 21
  • 71
  • 119

5 Answers5

101

If you archive the application the dsym file is in the xarchive. Right-click on the entry in the organizer, do "show in finder", right click on the xarchive and choose "show package contents". The dsym is in the dSYMs directory.

Joris Mans
  • 6,024
  • 6
  • 42
  • 69
  • 1
    Can you rewrite the question in correct English please? I really do not understand what you ask. – Joris Mans May 21 '13 at 08:43
  • I meant what if I don't archive it from xcode? but I found it inside one of the folders. (I build it with jenkins). Thanks for trying to help – Dejell May 21 '13 at 09:14
  • Ah ok. Well seems you found the answer :) we also do command line builds here btw. – Joris Mans May 21 '13 at 14:49
39

Update for Xcode 4.3.1

For me there was 2 build settings I had to edit and I had to edit them in the PROJECT and in the TARGETS sections before XCODE would generate dSYMs.

1) Build Settings -> Build Options -> Debug Information Format = DWARF with dSYM

2) Build Settings -> Apple LLVM compilier 3.1 - Code Generation -> Generate Debug Symbols = YES

Hopefully this will help someone else because I spent a few hours banging my head against the wall with Archives that had empty dSYM directories... I "love" XCODE sometimes....

Dr Jones
  • 391
  • 3
  • 3
  • Apparently (Xcode 4.5.1) DEBUG_INFORMATION -> Deployment has setting "DWARF" by default, the other option is "DWARF with dSYM File", which is the option I'd have liked. Now I have no dSYM file, but I do have a crash report. Not nice. – RickJansen Nov 01 '12 at 17:05
  • 2
    Choose 'DWARF with with dSYM File'. – ZhangChn Jan 10 '13 at 17:03
  • 1
    Generate Debug Symbols = YES that helped me too for some reason the previous team deactivated it.. – Piotr Oct 28 '14 at 09:22
  • Some more related build flags: `STRIP_INSTALLED_PRODUCT`, `UNSTRIPPED_PRODUCT`, `COPY_PHASE_STRIP` – Ohad Schneider Jan 06 '16 at 18:44
5

Make sure you have selected "DWARF with dSYM File" as the Debug Information Format in the build settings of your application. The dSYM is then generated automatically when you build and is usually placed in the same folder as the resulting .app.

Julio Gorgé
  • 10,056
  • 2
  • 45
  • 60
0

You can locate .dSYM and application binary file in archive.

  1. Select Window -> Organizer

Step 1

  1. This will open up Organizer window containing last created Archive of project
  2. Right click on Archive and select 'Show in Finder' Step 3
  3. Select 'Show Package Content' for archive Step 4
  4. Project.xcarchive contains dSYMs, Info.plist and Products Step 5

dSYMs folder contains dSYM file of your project.

Application folder in Project contains application binary of your project.

Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177
-1

You can find dSYM in Product, see below images:

  1. Right click to your App > Show in Finder

get dSYM - 1

  1. Here is it.

get dSYM - 2

  1. If you use Crashlytics , you need to zip it then upload it to dashboard.

enter image description here

777Q
  • 375
  • 3
  • 5