Firebase崩溃报告ios(符号文件)上的不可读错误 [英] Unreadble errors with Firebase Crash Reporting on ios (Symbol files)
问题描述
但我收到的日志是不可读的:
例外名称:EXC_BREAKPOINT / EXC_ARM_BREAKPOINT
TPC_swift
4295841940 + 284820
TPC_swift
4295841344 + 284224
$ b TPC_swift
4296852240 + 1295120
libdispatch.dylib
_dispatch_call_block_and_release + 5304
libdispatch.dylib
_dispatch_client_callout + 5240
libdispatch.dylib
_dispatch_main_queue_callback_4CF + 27520
CoreFoundation
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 920908
CoreFoundation
__CFRunLoopRun + 912308
9
CoreFoundation
CFRunLoopRunSpecific + 35916
GraphicsServices
GSEventRunModal + 49284
UIKit
UIApplicationMain + 516228
TPC_swift
4295904544 + 347424
libdyld.dylib
start + 10420
这是Firebase或Apple错误的问题吗?
在我的项目的Build阶段中,我有这个脚本:
#将此路径替换为您刚刚下载的密钥的路径
JSON_FILE = / ***** / TPC_Swift / TPC_swift / TPC_swift / Project - *****。json
#将其替换为GoogleService-Info.plist文件中的GOOGLE_APP_ID
GOOGLE_APP_ID = 1:*********:ios:****** *********
默认写入com.google.SymbolUpload版本-integer 1#创建文件(如果不存在)
JSON = $(cat$ {JSON_FILE} )
/ usr / bin / plutil -replaceapp _ $ {GOOGLE_APP_ID //:/ _}-json$ {JSON}$ HOME / Library / Preferences / com.google.SymbolUpload.plist
$ {PODS_ROOT}/ FirebaseCrash / upload-sym
谢谢
编辑:
在firebase上,我有:
上传符号文件以表示未来UUID的e堆栈跟踪
68FD2AAC-F8A7 - ***********
我认为问题是链接到符号文件
如何解决这个问题?
编辑2:
我试过了dwarfdump --uuid /path/to/your/build/area/MyApp.app/MyApp
,但我无法检索到这个UUID ...
你有没有找到你的问题的答案?
您的脚本似乎与 Firebase文档今天(2016年9月18日)。
您试过这个吗?
#将其替换为GoogleService-Info.plist文件中的GOOGLE_APP_ID
GOOGLE_APP_ID = 1:my:app:id
#将/Path/To/ServiceAccount.json替换为您刚刚下载的密钥的路径
$ {PODS_ROOT}/ FirebaseCrash / upload-sym/Path/To/ServiceAccount.json
I'm using firebase crash reporting to get crash on my iphone project.
But the logs that I receive are not readable :
Exception name: EXC_BREAKPOINT / EXC_ARM_BREAKPOINT
TPC_swift
4295841940 + 284820
TPC_swift
4295841344 + 284224
TPC_swift
4296852240 + 1295120
libdispatch.dylib
_dispatch_call_block_and_release + 5304
libdispatch.dylib
_dispatch_client_callout + 5240
libdispatch.dylib
_dispatch_main_queue_callback_4CF + 27520
CoreFoundation
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 920908
CoreFoundation
__CFRunLoopRun + 912308
9
CoreFoundation
CFRunLoopRunSpecific + 35916
GraphicsServices
GSEventRunModal + 49284
UIKit
UIApplicationMain + 516228
TPC_swift
4295904544 + 347424
libdyld.dylib
start + 10420
This is an issue with firebase or apple errors ?
In my Build Phases on my project, I have this script :
# Replace this path with the path to the key you just downloaded
JSON_FILE=/*****/TPC_Swift/TPC_swift/TPC_swift/Project-*****.json
# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:*********:ios:***************
defaults write com.google.SymbolUpload version -integer 1 # creates file if it does not exist
JSON=$(cat "${JSON_FILE}")
/usr/bin/plutil -replace "app_${GOOGLE_APP_ID//:/_}" -json "${JSON}" "$HOME/Library/Preferences/com.google.SymbolUpload.plist"
"${PODS_ROOT}"/FirebaseCrash/upload-sym
Thank you
EDIT :
On firebase, I have :
Upload symbol file to symbolicate future stack traces for UUID 68FD2AAC-F8A7-***********
I think the issue is linked to the symbol files How to solve this ?
EDIT 2 :
I tried "dwarfdump --uuid /path/to/your/build/area/MyApp.app/MyApp" but I can not retrieved this UUID...
Did you find the answer for your question?
Your script seems to be a little different than the one recommended at the Firebase doc today (Sep 18 2016).
Have you tried this one?
# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:my:app:id
# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
"${PODS_ROOT}"/FirebaseCrash/upload-sym "/Path/To/ServiceAccount.json"
这篇关于Firebase崩溃报告ios(符号文件)上的不可读错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!