Я пытаюсь включить "Link All
" в приложениях Xamarin . Это было успешно сделано в Android. Но для версии iOS я получаю время выполненияошибка.
Приложение только запускается и выходит из строя.
В iOS
→ Main.cs
→ UIApplication.Main (args, null, "AppDelegate");
Как мне решить эту проблему?
Приложены журналы сбоев.
Foundation.MonoTouchException сгенерировано
Сгенерировано исключение Objective C.Имя: NSInternalInconsistencyException Причина: ожидается, что окна окон приложений будут иметь контроллер корневого представления в конце запуска приложения. Собственная трассировка стека: 0
CoreFoundation 0x000000010cf3c1bb exceptionPreprocess + 331 1 libobjc.A.dylib 0x000000010dec2735 objc_exception 01024 * 0x000000010cf3bf42 + [Повышение NSException: формат: аргументы:] + 98 3
Foundation 0x000000010c0f5877 - [NSAssertionHandler handleFailureInMethod: объект: файл: номер_строки: описание:] + 194 4
UIKitCore 2: UX2: 02100: UX_WNEXT_NEXT_NEXT_NEXT: 0: 0 0 0 0 00завершение:] + 2978 5 UIKitCore 0x0000000115ae04e9 __111 - [__ UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene: переход: firstActivation: завершение:] _ block_invoke + 866 6 UIKitCore 0x0000000115ae929c + [_ UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153 7 UIKitCore 0x0000000115ae0126 - [__ UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene: переход: firstActivation: завершение:] + 233 8 UIKitCore 0x0000000115ae0ae0 - [__ UICanvasLifecycleMonitor_Compatability activateEventsOnly: withContext: завершение:] + 1085 9 UIKitCore * одна тысяча двадцать-семь * 0x0000000115adecb5 __82 - [_ UIApplicationCanvas _transitionLifecycleStateWithTransitionContext: завершение:] _ block_invoke + 795 10 UIKitCore 0x0000000115ade95f - [_ UIApplicationCanvas _transitionLifecycleStateWithTransitionContext: завершение:] + 435 11 UIKitCore 0x0000000115ae3a90 __125 - [_ UICanvasLifecycleSettingsDiffAction performActionsForCanvas: withUpdatedScene: settingsDiff: fromSettings: transitionContext:] _ block_invoke + 584 12 UIKitCore 0x0000000115ae480e _performActionsWithDelayForTransitionContext + 100 13 UIKitCore 0x0000000115ae37ef - [_ UICanvasLifecycleSettingsDiffAction performActionsForCanvas: withUpdatedScene: settingsDiff: fromSettings: transitionContext:] + 221 14UIKitCore 0x0000000115ae893a - [_ UICanvas сцена: didUpdateWithDiff: transitionContext: завершение:] + 392 15 UIKitCore 0x00000001162c044e - [UIApplicationРабочая область: didCreateScene: withTransitionContext: завершение:] + 515 16 UIKitCore 0x0000000115e64d09 - [UIApplicationSceneClientAgent сцена: didInitializeWithEvent: завершение:] + 357 17 FrontBoardServices 0x00000001119552da - [FBSSceneImpl _didCreateWithTransitionContext: завершение:] + 448 18 FrontBoardServices 0x0000000111960443 __56- [FBSWorkspace клиент: handleCreateScene:withCompletion:] _ block_invoke_2 + 271 19 FrontBoardServices 0x000000011195fb3a __40- [FBSWorkspace _performDelegateCallOut:] _ block_invoke + 53 20 libdispatch.dylib 0x000000010f3dc54b _dispatch_client_callout + 8 21 libdispatch.dylib 0x000000010f3df60b _dispatch_block_invoke_direct + 312 22 FrontBoardServices 0x0000000111994ba8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK 30 + 23 FrontBoardServices 0x0000000111994860 - [FBSSerialQueue _performNext] + 457 24 FrontBoardServices 0x0000000111994e40 - [FBSSerialQueue _performNextFromRunLoopSource] + 45 25 CoreFoundation 0x000000010cea1721 * 1 029 * CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 26 CoreFoundation 0x000000010cea0f93 __CFRunLoopDoSources0 + 243 27 CoreFoundation 0x000000010ce9b63f __CFRunLoopRun + 1263 28 CoreFoundation
0x000000010ce9ae11 CFRunLoopRunSpecific + 625 29 GraphicsServices
0x0000000111bb91dd GSEventRunModal + 62 30 UIKitCore
0x00000001162c381d UIApplicationMain + 140 31 ???
0x000000012cb7629e 0x0 + 5045183134 32 ???
0x000036010b 0300000012c