ios - Xamarin IOS 应用程序仅在安装 itunesconnect 和物理设备后才会崩溃
<p><p>我有一个应用程序正在使用 <a href="https://github.com/xamarin/PortableRazor" rel="noreferrer noopener nofollow">Portable razor library</a> 在 Xamarin 中构建一些 webviews。它在模拟器中以及在物理设备上调试时工作正常,但是一旦我部署到 itunesconnect 并通过 testflight 安装,它在启动时立即崩溃。我已经更新到最新版本的 Xcode 和 Visual Studio,但没有运气。下面是崩溃日志,但它没有提供我可以看到的任何线索。有什么想法吗?</p>
<p></p><div class="snippet"data-lang="js"data-hide="false"data-console="true"data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>Date/Time: 2018-02-28 07:22:49.5734 -0600
Launch Time: 2018-02-28 07:22:49.3343 -0600
OS Version: iPhone OS 11.2.6 (15D100)
Baseband Version: 3.42.00
Report Version: 104
Exception Type:EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:EXC_CORPSE_NOTIFY
Triggered by Thread:0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001841942e8 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001842a92f8 pthread_kill$VARIANT$mp + 396 (pthread.c:1484)
2 libsystem_c.dylib 0x0000000184103060 __abort + 152 (abort.c:128)
3 libsystem_c.dylib 0x0000000184102fc8 abort + 152 (abort.c:99)
4 GlenroyCalculatorAppiOS 0x0000000104dc3e40 xamarin_get_block_descriptor + 4496
5 GlenroyCalculatorAppiOS 0x0000000104dbedfc 0x104a90000 + 3337724
6 GlenroyCalculatorAppiOS 0x0000000104c9e684 0x104a90000 + 2156164
7 GlenroyCalculatorAppiOS 0x0000000104ceaa34 0x104a90000 + 2468404
8 GlenroyCalculatorAppiOS 0x0000000104cea5a4 0x104a90000 + 2467236
9 GlenroyCalculatorAppiOS 0x0000000104dc3744 xamarin_get_block_descriptor + 2708
10GlenroyCalculatorAppiOS 0x0000000104dc9a20 xamarin_get_block_descriptor + 28016
11GlenroyCalculatorAppiOS 0x0000000104a98188 0x104a90000 + 33160
12libdyld.dylib 0x000000018406456c start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001842a6b68 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001842a6b68 start_wqthread + 0
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001841940f0 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001842aace4 _pthread_cond_wait$VARIANT$mp + 640 (pthread_cond.c:579)
2 GlenroyCalculatorAppiOS 0x0000000104da4e50 0x104a90000 + 3231312
3 libsystem_pthread.dylib 0x00000001842a82b4 _pthread_body + 308 (pthread.c:740)
4 libsystem_pthread.dylib 0x00000001842a8180 _pthread_start + 312 (pthread.c:799)
5 libsystem_pthread.dylib 0x00000001842a6b74 thread_start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000001
x4: 0x0000000000000000 x5: 0x0000000000989680 x6: 0x0000000000000031 x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000x10: 0x00000000000003e8x11: 0x00000001b7d1a004
x12: 0x00000001b7d1a004x13: 0x0000000000000018x14: 0x0000000000000001x15: 0x0000000000000881
x16: 0x0000000000000148x17: 0x0000000000000000x18: 0xfffffff013edd260x19: 0x0000000000000006
x20: 0x00000001b59edb80x21: 0x0000000104ed1000x22: 0x0000000000000303x23: 0x00000001b59edc60
x24: 0x0000000105564e2ax25: 0x0000000104de16e1x26: 0x0000000000000000x27: 0x0000000104e654f0
x28: 0x0000000104e654d0 fp: 0x000000016b36e9a0 lr: 0x00000001842a92f8
sp: 0x000000016b36e970 pc: 0x00000001841942e8 cpsr: 0x00000000</code></pre>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>这是一个权限问题,但直到 xcode 9.3 才出现,当时我用它来构建我的应用程序以供发布。如果您没有指定某些 Info.plist 键,您的应用会在请求它们时立即崩溃。这尤其令人困惑,因为我没有使用它告诉我的任何权限。希望这对其他人有帮助。</p>
<p> <a href="/image/92hOi.jpg" rel="noreferrer noopener nofollow"><img src="/image/92hOi.jpg" alt="enter image description here"/></a> </p></p>
<p style="font-size: 20px;">关于ios - Xamarin IOS 应用程序仅在安装 itunesconnect 和物理设备后才会崩溃,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/49537204/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/49537204/
</a>
</p>
页:
[1]