我在终端里面使用命令
leancloud upload_symbol -v -f "/Users/meiju/Library/Developer/Xcode/DerivedData/DRUN-agfmapfmdlkcpsedakerkitzbnvx/Build/Intermediates/ArchiveIntermediates/DRUN/BuildProductsPath/Release-iphoneos/DRUN.app.dSYM" -i "我的APPID" -k "我的SECRET"
可以得到如下输出:
Command for dump symbol files:
leancloud_dump_syms -a armv7 "/Users/meiju/Library/Developer/Xcode/DerivedData/DRUN-agfmapfmdlkcpsedakerkitzbnvx/Build/Intermediates/ArchiveIntermediates/DRUN/BuildProductsPath/Release-iphoneos/DRUN.app.dSYM" > /var/folders/1t/6zmhk69j14lfq899vm7ffxww0000gn/T/cn.leancloud/symbols/armv7.sym 2>/dev/null
leancloud_dump_syms -a arm64 "/Users/meiju/Library/Developer/Xcode/DerivedData/DRUN-agfmapfmdlkcpsedakerkitzbnvx/Build/Intermediates/ArchiveIntermediates/DRUN/BuildProductsPath/Release-iphoneos/DRUN.app.dSYM" > /var/folders/1t/6zmhk69j14lfq899vm7ffxww0000gn/T/cn.leancloud/symbols/arm64.sym 2>/dev/null
Command for uploading symbol files:
curl -X POST \
-H "X-AVOSCloud-Application-Id: 我的APPID" \
-H "X-AVOSCloud-Application-Key: 我的SECRET" \
-F "symbol_file_armv7=@/var/folders/1t/6zmhk69j14lfq899vm7ffxww0000gn/T/cn.leancloud/symbols/armv7.sym" \
-F "symbol_file_arm64=@/var/folders/1t/6zmhk69j14lfq899vm7ffxww0000gn/T/cn.leancloud/symbols/arm64.sym" \
https://api.leancloud.cn/1.1/stats/breakpad/symbols 2>/dev/null
Uploading symbol files...
Uploaded symbol files.
看起来好像是符号化文件上传成功了,可是为什么leancloud后台还是显式未上传符号化文件呢?
degug infomation format 我设置了 debug 和 release 都是 DWARF with dSYM file
但是这个DRUN.app.dSYM文件是我archive之后才出现,我设备上是debug运行的,这个有关系吗?debug好像不产生DRUN.app.dSYM这个文件,没找着。