菜鸟教程小白 发表于 2022-12-13 14:18:46

ios - Firebase 崩溃无法读取


                                            <p><p>我在 FireBase 上阅读崩溃报告时遇到问题,我的报告如下所示:</p>

<p> <a href="/image/R7QqA.png" rel="noreferrer noopener nofollow"><img src="/image/R7QqA.png" alt="FireBase crash report"/></a> </p>

<p>我已经关注了<a href="https://firebase.google.com/docs/crash/ios#upload_symbol_files" rel="noreferrer noopener nofollow">these instructions</a>符号化堆栈跟踪,得到相同的结果。</p>

<ul>
<li>我正在使用 Xcode 8</li>
<li>我的应用是用 Swift 3 制作的</li>
<li>我已经写了“FIRApp.configure()”
appDelegate.didFinishLaunchingWithOptions 方法,确实让它崩溃了,卸载调试器,修复错误,重新运行应用程序,收到消息“崩溃成功上传”等...</li>
<li>我正在使用 pod(pod 'Firebase' 和 pod 'Firebase/Crash')</li>
<li>我在 FireBase 控制台中看到我的事件和崩溃(只是
不可读)</li>
<li>在构建时自动安装符号化脚本(见图):</li>
</ul>

<p> <a href="/image/TFbV0.png" rel="noreferrer noopener nofollow"><img src="/image/TFbV0.png" alt="enter image description here"/></a> </p>

<p>已下载 FireBase 提供的示例(崩溃示例不包括自动符号化的脚本)</p>

<p>已经按照这个解决方案(没用):</p>

<ul>
<li> <a href="https://stackoverflow.com/questions/37513092/upload-symbol-files" rel="noreferrer noopener nofollow">link1</a> </li>
<li> <a href="https://stackoverflow.com/questions/39121912/unreadble-errors-with-firebase-crash-reporting-on-ios-symbol-files" rel="noreferrer noopener nofollow">link2</a> </li>
</ul>

<p>还有很多其他的。</p>

<p>已经访问过最近 6 个月的 stackoverflow 和 google 组上的链接。</p>

<p>没有任何效果,请帮助!!!</p>

<p>更新#1:我收到了一封来自 [email protected] 的电子邮件:</p>

<blockquote>
<p>reset your OAuth credentials</p>
</blockquote>

<p>没用,我也一直在测试脚本,上传是正确的,我开始认为是 Firebase 错误</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>您的上传脚本似乎没有设置 <code>GOOGLE_APP_ID</code> var。它应该类似于:</p>

<p><strong># 用 <code>GoogleService-Info.plist</code> 文件中的 <code>GOOGLE_APP_ID</code> 替换它</strong></p>

<pre><code>1:xxxxxxxxx:ios:xxxxxxxxxxx=1:my:app:id
</code></pre>

<p><strong><code># 将/Path/To/ServiceAccount.json 替换为刚刚下载的 key 的路径</code></strong></p>

<p>"<code>${PODS_ROOT}"/FirebaseCrash/upload-sym "firebasecrash/firebasecrashreport.json</code>"</p>

<p>这里 <code>firebasecrashreport.json</code> 是 ServiceAccount JSON 文件的名称,而 firebasecrash 是我的项目的名称。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - Firebase 崩溃无法读取,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/40160230/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/40160230/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - Firebase 崩溃无法读取