How to create dSYM file in XCode 4?

2019-01-31 06:45发布

问题:

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

Thanks!

回答1:

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.



回答2:

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....



回答3:

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.



回答4:

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

  1. Select Window -> Organizer

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

dSYMs folder contains dSYM file of your project.

Application folder in Project contains application binary of your project.



回答5:

You can find dSYM in Product, see below images:

  1. Right click to your App > Show in Finder

  1. Here is it.

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