作为Xcode构建过程的一部分,如何运行上传符号来上传dSYM? [英] How to run upload symbols to upload dSYMs as a part of Xcode build process?
问题描述
好的,所以我尝试自动上传dSYM。
我正在遵循此官方文档中的说明:
https ://firebase.google.com/docs/crashlytics/get-deobfuscated-reports
Ok, so I'm trying to automatically upload dSYMs. I'm following instructions from this official documentation: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports
我被困在手动运行上传符号脚本部分。
有3种上传dSYM的方法。我正在尝试遵循第一个步骤-在您的构建过程中包括以下行:
查找$ {DWARF_DSYM_FOLDER_PATH}-名称 * .dSYM | xargs -I \ {\} $ {PODS_ROOT} / Fabric / upload-symbols -gsp MyProjectFolder / GoogleService-Info.plist -p ios \ {\}
I'm stuck at "Run the upload symbols script manually" section.
There are 3 ways to upload dSYMs. I'm trying to follow the first one - including the following line in your build process:
find ${DWARF_DSYM_FOLDER_PATH} -name "*.dSYM" | xargs -I \{\} ${PODS_ROOT}/Fabric/upload-symbols -gsp MyProjectFolder/GoogleService-Info.plist -p ios \{\}
现在我尝试了以下操作:
For now I've tried the following:
- 我转到Project-> Scheme-> Edit方案。
- 我单击Build-> Post actions
- 我从小开始-我只想在构建过程中显示 echo:
- 我运行产品->构建
- 我转到查看->导航器->显示报告导航器
- 没有迹象表明运行了回显。
- I go to Project->Scheme->Edit Scheme.
- I click on Build->Post actions
- I start small - I only want to show "echo" in build process:
- I run Product->Build
- I go to View->Navigators->Show Report Navigator
- There's not indication that echo was run.
该脚本放在哪里?
如何查找其脚本是否正在运行?
How to find if it is being run or not?
推荐答案
尝试以下步骤:
步骤1:选择应用程序的Xcode项目,然后选择应用程序目标,然后选择构建阶段。
Step 1: Select your application's Xcode project, then your application target, then select "Build Phases".
第2步:在Xcode菜单中,选择编辑器,然后选择添加构建阶段,然后单击添加运行脚本
Step 2: In Xcode menu, select "Editor", then select "Add Build Phase", and then click on "Add Run Script Build Phase".
步骤3:现在,您应该在构建阶段选项中看到运行脚本部分。
Step 3: You should now see a Run Script section in your Build Phase options.
步骤4:将脚本粘贴到运行脚本构建阶段正文中。
Step 4: Paste in the script inside the body of the Run Script Build Phase.
请记住在脚本中设置正确的文件路径( s)。
Keep in mind to set the right file-path(s) in your script(s).
这篇关于作为Xcode构建过程的一部分,如何运行上传符号来上传dSYM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!