ios Xcode 存档未创建 DSYM 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14075764/
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-08-30 21:39:20  来源:igfitidea点击:

Xcode archive not creating DSYM file

iosxcodearchivedebug-symbolsdsym

提问by belsokar

For most of my projects, I setup an "archive" scheme to archive my project, creating an IPA and DSYM that I can upload to TestFlight.

对于我的大多数项目,我设置了一个“归档”方案来归档我的项目,创建一个可以上传到 TestFlight 的 IPA 和 DSYM。

However, I'm working on a more complicated project that has several targets within the project workspace, quite a few static linked libraries. I have gone through each target and set the following for all configurations:

但是,我正在处理一个更复杂的项目,该项目在项目工作区中有多个目标,相当多的静态链接库。我已经检查了每个目标并为所有配置设置了以下内容:

  • Deployment Postprocessing -> NO
  • Strip Linked Product... -> No
  • Strip Debug... -> No
  • Generate Debug Symbols -> Yes
  • Debug Information... -> DWARF with DSYM
  • 部署后处理 -> 否
  • 剥离链接产品... -> 否
  • 剥离调试... - > 否
  • 生成调试符号 -> 是
  • 调试信息... - > DWARF 与 DSYM

I am using Xcode 4.5.2. I have done this for multitudes of projects with no issues. This is the first where something seems to be preventing the DSYM file from being created.

我正在使用 Xcode 4.5.2。我已经为许多项目做到了这一点,没有任何问题。这是第一个似乎阻止创建 DSYM 文件的地方。

No matter what I try, my archive build will not generate a .DSYM file

无论我尝试什么,我的存档构建都不会生成 .DSYM 文件

回答by nikans

Identifying the problem

识别问题

As @belsokar suggested, check the Report Navigator. In my case, the dSYM file has not been generated, and there hasn't been a corresponding line that goes like "Generate Appname.dSYM ...in {path}"But there's been Fabric installed, and it logged the fact of the dSYM file's absence:

正如@belsokar 建议的那样,检查报告导航器。就我而言,dSYM 文件尚未生成,也没有相应的行,"Generate Appname.dSYM ...in {path}"但已经安装了 Fabric,它记录了 dSYM 文件缺失的事实:

no dsym

没有 dsym

Just filer the Report Navigator by "dSYM".

只需通过“dSYM”对报告导航器进行归档。

Fixing

定影

In my case I've just had to do what I'm asked of:

在我的情况下,我只需要按照我的要求做:

DEBUG_INFORMATION_FORMAT should be set to dwarf-with-dsym for ALL configurations.

对于所有配置,DEBUG_INFORMATION_FORMAT 应设置为 dwarf-with-dsym。

Also, it may turn out that dSYM file is being generated in an unexpected place. Check environment variables, especially DWARF_DSYM_FOLDER_PATHand DWARF_DSYM_FILE_NAME.

此外,可能会发现 dSYM 文件是在意外的地方生成的。检查环境变量,尤其是DWARF_DSYM_FOLDER_PATHDWARF_DSYM_FILE_NAME

To embed the dSYM within the app bundle, just set DWARF_DSYM_FOLDER_PATHto $(CONFIGURATION_BUILD_DIR)/$(EXECUTABLE_FOLDER_PATH)and DWARF_DSYM_FILE_NAMEto $(EXECUTABLE_NAME).dSYM

嵌入的dSYM应用程序包内,只设置DWARF_DSYM_FOLDER_PATH$(CONFIGURATION_BUILD_DIR)/$(EXECUTABLE_FOLDER_PATH)DWARF_DSYM_FILE_NAME$(EXECUTABLE_NAME).dSYM

Checking

检查

Now the build should create dSYM for your target

现在构建应该为你的目标创建 dSYM

generate target.dSYM

生成目标.dSYM

回答by balkaran singh

xcode - > product -> Archive

xcode - > product -> Archive

you see Archives window

你看到档案窗口

1 Select any Archives of your app Right click on it Then select show in finder

1 选择您的应用程序的任何档案右键单击它然后选择在查找器中显示

2 you see aapname.xcarchive file Right click on it and select show package contents

2 你看到 aapname.xcarchive 文件右键单击它并选择显示包内容

3 you see dSYMs folder open it and get .dSYMfile

3你看到dSYMs文件夹打开它并获取.dSYM文件

:)

:)

回答by belsokar

A few tips for researching.

一些研究建议。

  • Check the Log Navigator. I went into this view (one I rarely use so I tend to forget it exists), and I realized the .DSym file was in fact being created.

  • Check build directory configs to see if they are default or custom...in my case, they were custom, so they weren't being put in the typical default location.

  • 检查日志导航器。我进入了这个视图(我很少使用,所以我往往会忘记它的存在),然后我意识到 .DSym 文件实际上正在被创建。

  • 检查构建目录配置以查看它们是默认的还是自定义的...在我的情况下,它们是自定义的,因此它们没有被放置在典型的默认位置。

回答by Ashiq Sulaiman

This is work around helped me:

这是解决方法帮助我:

  1. Log into iTunes Connect and go to My Apps.
  2. Click on the app that you're trying to download the dSYM for Go to 'Activity' tab.
  3. Click on the version you want to expand it and show all the uploaded builds.
  4. Click the build you want.
  5. You'll be shown details about that build, and the option to download dSYM in the bottom right corner under 'Includes Symbols' header.
  1. 登录 iTunes Connect 并转到“我的应用”。
  2. 单击您正在尝试下载 dSYM 的应用程序以转到“活动”选项卡。
  3. 单击要展开的版本并显示所有上传的版本。
  4. 单击所需的构建。
  5. 您将看到有关该版本的详细信息,以及在右下角“包含符号”标题下下载 dSYM 的选项。