Firebase崩溃报告ios(符号文件)时出现无法读取的错误

我正在使用Firebase崩溃报告崩溃在我的iPhone项目。

但是我收到的日志不可读:

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 

这是与Firebase或苹果错误的问题?

在我的项目的构build阶段,我有这个脚本:

 # Replace this path with the path to the key you just downloaded 

JSON_FILE = / ***** / TPC_Swift / TPC_swift / TPC_swift /项目 – ***** 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 

谢谢

编辑:

在firebase,我有:

上传符号文件以代表UUID 68FD2AAC-F8A7的未来堆栈跟踪 – ***********

我认为问题是链接到符号文件如何解决这个问题?

编辑2:

我尝试过“dwarfdump –uuid /path/to/your/build/area/MyApp.app/MyApp”,但我无法检索到这个UUID …

你有没有find你的问题的答案?

您的脚本似乎与今天Firebase文档中build议的脚本稍有不同(2016年9月18日)。

你试过这个吗?

 # 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-support@google.com得到的:

感谢等待。 你可以看看下面的项目,看看会不会起作用:

重置您的OAuth凭据,运行以下命令:

 rm $HOME/Library/Preferences/com.google.SymbolUpload* 

创build新的服务帐户,并确保它具有编辑权限将您的脚本修改为以下格式:

 # 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" 

请确保您的应用程序ID和JSON文件path是正确的。 我希望这有帮助。 让我知道你是否有其他问题。