简体   繁体   中英

How to create dSYM file in XCode 4?

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

Thanks!

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.

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

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.

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

  1. Select Window -> Organizer

步骤1

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

dSYMs folder contains dSYM file of your project.

Application folder in Project contains application binary of your project.

You can find dSYM in Product, see below images:

  1. Right click to your App > Show in Finder

得到dSYM  -  1

  1. Here is it.

得到dSYM  -  2

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

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM