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
iphone: Where the .dSYM file is located in crash report
提问by shweta thakar
回答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 和应用程序二进制文件。
- Select Window -> Organizer
- 选择窗口 -> 管理器
- This will open up Organizer window containing last created Archive of project
- Right click on Archive and select 'Show in Finder'
- Select 'Show Package Content' for archive
- Project.xcarchive contains dSYMs, Info.plist and Products
- 这将打开包含上次创建的项目档案的管理器窗口
- 右键单击存档并选择“在 Finder 中显示”
- 选择“显示包内容”进行存档
- Project.xcarchive 包含dSYMs、Info.plist 和 Products
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 Symbols
setting is enabled.Debug Infomation Format
are set toDWARF with dSYM File
.
Generate Debug Symbols
设置已启用。Debug Infomation Format
设置为DWARF with dSYM File
.
Hope this will help.
希望这会有所帮助。
回答by owen gerig
I found my .dsym
file 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
回答by duskwuff -inactive-
The .dSYM
file 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:
这很简单。请按照此处的步骤操作:
- Open your project in Xcode, and select the project filein the Xcode Navigator.
- Select your main build target from the Select a project or targetdropdown.
- Open the target's Build Settingstab.
- Click Allnear the top of the tab.
- Search for "debug information format".
- Set Debug Information Formatto DWARF with dSYM File.
- 在Xcode 中打开您的项目,然后在 Xcode Navigator 中选择项目文件。
- 从Select a project or target下拉列表中选择您的主要构建目标。
- 打开目标的构建设置选项卡。
- 点击所有靠近标签的顶部。
- 搜索“调试信息格式”。
- 使用 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_