简体   繁体   English

Xamarin.Forms iOS 应用程序在 SplashScreen 后发布时崩溃

[英]Xamarin.Forms iOS application crash on release after SplashScreen

I have a very bad issue right now:我现在有一个非常糟糕的问题:

Behavior:行为:

设置

Application work when debug, but in release exit when app start.应用程序在调试时工作,但在应用程序启动时在发布退出。

The debugg information is not clear for the reason the application fail only in release mode.调试信息不清楚,因为应用程序仅在发布模式下失败。

  1. Visual Studio 2019视觉工作室 2019
  2. Xamarin Forms 4.8.0.1821 Xamarin Forms 4.8.0.1821
  3. ZxIng.Net.Mobile 2.4.1 Zxing.Net.Mobile 2.4.1
  4. ZxIng.Net.Mobile.Forms 2.4.1 ZxIng.Net.Mobile.Forms 2.4.1
  5. Newtonsoft.Json 12.0.3 Newtonsoft.Json 12.0.3
  6. Xamarin.Essentials 1.6.1 Xamarin.Essentials 1.6.1
  7. SDK 14.4 SDK 14.4

Simulator log file:模拟器日志文件:

Process:              myapp-ui.iOS [19566]

Path:                  /Users/USER/Library/Developer/CoreSimulator/Devices/2C19C42D-564E-42CB-B805-C9C49BB1E8FD/data/Containers/Bundle/Application/1F644647-27DB-48EF-96D6-75A169AE4E9D/myapp-ui.iOS.app/myapp-ui.iOS

Identifier:            myapp-ui.iOS

Version:               2.0.3 (1610484945)

Code Type:             X86-64 (Native)

Parent Process:        launchd_sim [17405]

Responsible:           SimulatorTrampoline [1267]

User ID:               501


Date/Time:             2021-02-16 12:29:44.629 -0600

OS Version:            macOS 11.2.1 (20D74)

Report Version:        12

Anonymous UUID:        E13D7872-1C1C-3306-5557-E45B4D68317D



Time Awake Since Boot: 350000 seconds


System Integrity Protection: enabled


Crashed Thread:        0  tid_307  Dispatch queue: com.apple.main-thread


Exception Type:        EXC_CRASH (SIGABRT)

Exception Codes:       0x0000000000000000, 0x0000000000000000

Exception Note:        EXC_CORPSE_NOTIFY


Application Specific Information:

abort() called

CoreSimulator 732.18.6 - Device: iPhone 12 Pro (2C19C42D-564E-42CB-B805-C9C49BB1E8FD) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 12 Pro


Thread 0 Crashed:: tid_307  Dispatch queue: com.apple.main-thread

0   libsystem_kernel.dylib          0x00007fff61131462 __pthread_kill + 10

1   libsystem_pthread.dylib         0x00007fff6116a610 pthread_kill + 263

2   libsystem_c.dylib               0x00007fff200fac2e __abort + 139

3   libsystem_c.dylib               0x00007fff200faba3 abort + 135

4   io.myapp.myapp-easyapp              0x00000001045caa6f xamarin_unhandled_exception_handler + 31 (runtime.m:1151)

5   io.myapp.myapp-easyapp              0x000000010445f415 mono_invoke_unhandled_exception_hook + 133 (exception.c:1265)

6   io.myapp.myapp-easyapp              0x000000010439ce2a mono_handle_exception_internal + 6986 (mini-exceptions.c:2782)

7   io.myapp.myapp-easyapp              0x000000010439b2d9 mono_handle_exception + 25 (mini-exceptions.c:3107)

8   io.myapp.myapp-easyapp              0x000000010431b969 mono_amd64_throw_exception + 169 (exceptions-amd64.c:409)

9   ???                             0x0000000104f6a5b0 0 + 4378240432

10  io.myapp.myapp-easyapp              0x00000001045ca7ed xamarin_process_managed_exception + 301 (runtime.m:2356)

11  io.myapp.myapp-easyapp              0x00000001045d1482 xamarin_invoke_trampoline + 1250 (trampolines-invoke.m:686)

12  io.myapp.myapp-easyapp              0x00000001045d3642 xamarin_arch_trampoline + 82 (trampolines-x86_64.m:491)

13  io.myapp.myapp-easyapp              0x00000001045d400a xamarin_x86_64_common_trampoline + 118 (trampolines-x86_64-asm.s:51)

14  com.apple.Foundation            0x00007fff208592ba __NSThreadPerformPerform + 204

15  com.apple.CoreFoundation        0x00007fff2039038a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

16  com.apple.CoreFoundation        0x00007fff20390282 __CFRunLoopDoSource0 + 180

17  com.apple.CoreFoundation        0x00007fff2038f7c6 __CFRunLoopDoSources0 + 346

18  com.apple.CoreFoundation        0x00007fff20389f2f __CFRunLoopRun + 878

19  com.apple.CoreFoundation        0x00007fff203896d6 CFRunLoopRunSpecific + 567

20  com.apple.GraphicsServices      0x00007fff2c257db3 GSEventRunModal + 139

21  com.apple.UIKitCore             0x00007fff24696cf7 -[UIApplication _run] + 912

22  com.apple.UIKitCore             0x00007fff2469bba8 UIApplicationMain + 101

23  ???                             0x00000001065cb0a4 0 + 4401705124

24  ???                             0x00000001065caf13 0 + 4401704723

25  ???                             0x00000001065c7313 0 + 4401689363

26  io.myapp.myapp-easyapp              0x00000001043b36d1 mono_jit_runtime_invoke + 1569 (mini-runtime.c:3191)

27  io.myapp.myapp-easyapp              0x00000001044d9c08 do_runtime_invoke + 54 (object.c:3052) [inlined]

28  io.myapp.myapp-easyapp              0x00000001044d9c08 mono_runtime_invoke_checked + 136 (object.c:3220)

29  io.myapp.myapp-easyapp              0x00000001044dff75 do_exec_main_checked + 60 [inlined]

30  io.myapp.myapp-easyapp              0x00000001044dff75 mono_runtime_exec_main_checked + 117 (object.c:5284)

31  io.myapp.myapp-easyapp              0x00000001043124ec mono_jit_exec_internal + 14 (driver.c:1383) [inlined]

32  io.myapp.myapp-easyapp              0x00000001043124ec mono_jit_exec + 364 (driver.c:1328)

33  io.myapp.myapp-easyapp              0x00000001045d3196 xamarin_main + 1686 (monotouch-main.m:493)

34  io.myapp.myapp-easyapp              0x00000001042cc857 main + 55 (main.m:55)

35  libdyld.dylib                   0x00007fff2025a3e9 start + 1

Fortunately the problem is Entitlement.plist, for some reason when use SecureStorage from Xamarin.Essentials, the application crash in release Testflight on shop, so I remove SecureStorage and problem solved.幸运的是问题是 Entitlement.plist,由于某种原因,当使用 Xamarin.Essentials 中的 SecureStorage 时,应用程序在商店发布 Testflight 时崩溃,所以我删除了 SecureStorage 并解决了问题。

Thanks all for all the answers.感谢所有人的所有答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xamarin.forms在iOS设备上的应用程序测试 - Xamarin.forms application testing on iOS device Xamarin.Forms iOS在具有自定义控件的XAML页面上崩溃 - Xamarin.Forms iOS crash on XAML pages with custom controls 为什么我无法归档 Xamarin.Forms iOS 应用程序? - Why can't I archive a Xamarin.Forms iOS application? 无法安装应用程序 Xamarin.Forms iOS Z7ACA5EC618F7317328DCD7014CF9BDCF - Failed to install application Xamarin.Forms iOS USB Xamarin.Forms iOS 中的 DateTimePicker - DateTimePicker in Xamarin.Forms iOS Xamarin.Forms 和 App Center:无法在 iPhone 5s 上安装 iOS 版本 - Xamarin.Forms and App Center: unable to install iOS release on iPhone 5s “找不到此可执行文件的有效配置文件”,用于 Xamarin.Forms iOS RELEASE 构建到 iPhone 设备 - “A valid provisioning profile for this executable was not found” for Xamarin.Forms iOS RELEASE build to an iPhone Device 我的xamarin表单的发布版本iOS应用程序在应用程序启动时崩溃 - Release version of my xamarin forms iOS app is crashing on application launch Xamarin.Forms 中的 Newtonsoft.Json 动态异常 - 仅在 IOS/Device/Release 中 - Newtonsoft.Json dynamic exception in Xamarin.Forms - only in IOS/Device/Release Xamarin.Forms 无法更改 Xamarin.Z1BDF605991920DB11CBDF8508 本地设备上的应用程序图标 - Xamarin.Forms can't change Application Icons in Xamarin.iOS on local device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM