xcode iphone:.dSYM 文件在崩溃报告中的位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7088771/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:04:25  来源:igfitidea点击:

iphone: Where the .dSYM file is located in crash report

iphonexcode

提问by shweta thakar

According to this page hereif you have proper application binary and .dSYM file then it is easy to symbolic them. But where are .dSYM and application binary files located?

根据这里的这个页面如果你有合适的应用程序二进制文件和 .dSYM 文件,那么很容易对它们进行符号化。但是 .dSYM 和应用程序二进制文件在哪里?

回答by Devang

Right Click on your archive -> Show in Finder ->Right click on file and click on Show package contents.

右键单击您的archive -> Show in Finder ->右键单击文件,然后单击Show package contents

Here you will find your .dSYM file.

在这里您会找到您的 .dSYM 文件。

回答by Jayprakash Dubey

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

您可以在存档中找到 .dSYM 和应用程序二进制文件。

  1. Select Window -> Organizer
  1. 选择窗口 -> 管理器

Step 1

第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 ProductsStep 5
  1. 这将打开包含上次创建的项目档案的管理器窗口
  2. 右键单击存档并选择“在 Finder 中显示第 3 步
  3. 选择“显示包内容”进行存档 第四步
  4. Project.xcarchive 包含dSYMs、Info.plist 和 Products第 5 步

dSYMs folder contains dSYM file of your project.

dSYMs 文件夹包含项目的 dSYM 文件。

Application folder in Project contains application binary of your project.

Project 中的应用程序文件夹包含项目的应用程序二进制文件。

回答by HongchaoZhang

If you have archived your project, you can find the dSYM file as above.

如果您已存档项目,则可以找到如上的 dSYM 文件。

If you have build you project for a real device, you can also find the dSYM file by the following way:

如果您已经为真实设备构建了您的项目,您还可以通过以下方式找到 dSYM 文件:

  • Go to Project Navigator, and find Productsfolder
  • Right click the app, and choose Show in Finder.

    Make sure that the app is in black color, not red. Because red color means that you have not build the target for a real device.

  • You can find the dSYM file with the same name with your app, in the same folder.
  • 转到Project Navigator,并找到Products文件夹
  • 右键单击该应用程序,然后选择在 Finder 中显示

    确保应用程序为黑色,而不是红色。因为红色意味着您还没有为真实设备构建目标。

  • 您可以在同一文件夹中找到与您的应用程序同名的 dSYM 文件。

Before all of these actions, make sure you have configured the xcode build settings right, as follows:

在执行所有这些操作之前,请确保您已正确配置 xcode 构建设置,如下所示:

  • Generate Debug Symbolssetting is enabled.
  • Debug Infomation Formatare set to DWARF with dSYM File.
  • Generate Debug Symbols设置已启用。
  • Debug Infomation Format设置为DWARF with dSYM File.

Hope this will help.

希望这会有所帮助。

回答by owen gerig

I found my .dsymfile in /Users/<username>/Library/Developer/Xcode/DerivedData/<appname>/Build/Products/<appname>

我找到了我的.dsym文件/Users/<username>/Library/Developer/Xcode/DerivedData/<appname>/Build/Products/<appname>

回答by Kris Subramanian

In Xcode 5.1.1 you will find it under Xcode -> Preferences -> Locations -> DerivedData. Under DerivedDatayou will see a bunch of random directory names. Find the ones that starts with your project name. Then get the latestdirectory that was created for your project. Then under that directory go to Build/Products/<Your specific release>/*.app.dSYM.

在 Xcode 5.1.1 中,您可以在Xcode -> Preferences -> Locations -> DerivedData下找到它。在DerivedData 下,您将看到一堆随机目录名称。找到以您的项目名称开头的那些。然后获取为您的项目创建的最新目录。然后在该目录下转到Build/Products/<Your specific release>/*.app.dSYM.

You can even click on your end product under "Products" in project explorer and do a "Show in finder" to get there directly.

您甚至可以在项目资源管理器中的“产品”下单击您的最终产品,然后执行“在查找器中显示”以直接到达那里。

回答by Hot'n'Young

If you removed archive from Xcode's Organizer like me, you can download dsym at the appstore. Select your app, select target version and go to Activity tab. Here you can download desired dsym.Where to download

如果你像我一样从 Xcode 的 Organizer 中删除了存档,你可以在 appstore 下载 dsym。选择您的应用程序,选择目标版本并转到活动选项卡。在这里您可以下载所需的 dsym。在哪里下载

回答by duskwuff -inactive-

The .dSYMfile should have been generated when you built your application. Look in your build product directory.

.dSYM文件应该在您构建应用程序时生成。查看您的构建产品目录。

回答by Pichirichi

If you have the UUID you are looking for, you can search the files with the following command:

如果您有要查找的 UUID,则可以使用以下命令搜索文件:

mdfind "com_apple_xcode_dsym_uuids == <UUID>”

回答by Sonu VR

If you haven't generated an archive and are trying to debug it on the device, dsym can be found at

如果您尚未生成存档并尝试在设备上对其进行调试,则可以在以下位置找到 dsym

/Library/Developer/Xcode/DerivedData/YOUR_APP/Build/Products/Debug-iphoneos

/Library/Developer/Xcode/DerivedData/YOUR_APP/Build/Products/Debug-iphoneos

回答by Priyank Jotangiya

It's simple. Please follow the steps here:

这很简单。请按照此处的步骤操作:

  1. Open your project in Xcode, and select the project filein the Xcode Navigator.
  2. Select your main build target from the Select a project or targetdropdown.
  3. Open the target's Build Settingstab.
  4. Click Allnear the top of the tab.
  5. Search for "debug information format".
  6. Set Debug Information Formatto DWARF with dSYM File.
  1. Xcode 中打开您的项目,然后在 Xcode Navigator 中选择项目文件
  2. Select a project or target下拉列表中选择您的主要构建目标。
  3. 打开目标的构建设置选项卡。
  4. 点击所有靠近标签的顶部。
  5. 搜索“调试信息格式”。
  6. 使用 dSYM 文件调试信息格式设置为DWARF

Now go to Product > Archive > Your Build > right click on your build and click on Show in Finder. Now right click and go to Show Package Contents> dSYMs > Yourappname.app.dSYM_

现在转到 Product > Archive > Your Build > 右键单击​​您的 build 并单击Show in Finder。现在右键单击并转到Show Package Contents> dSYMs > Yourappname.app.dSYM_