2019-03-22 14:46:35.302793-0300 CHA.iOS[14335:167957] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit-3698.93.8/UITableView.m:2062
2019-03-22 14:46:35.349720-0300 CHA.iOS[14335:167957] Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (1) must be equal to the number of rows contained in that section before the update (19), plus or minus the number of rows inserted or deleted from that section (1 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).
Native stack trace:
0 CoreFoundation 0x00000001022331bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010f345735 objc_exception_throw + 48
2 CoreFoundation 0x0000000102232f42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000102e63877 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 UIKitCore 0
x0000000118291e2d -[UITableView _endCellAnimationsWithContext:] + 18990
5 UIKitCore 0x00000001182ab711 -[UITableView endUpdates] + 75
6 CHA.iOS 0x0000000101ab6c19 xamarin_dyn_objc_msgSend + 217
7 ??? 0x00000001353e2410 0x0 + 5188232208
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace CHA.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
Xamarin.FormsMaps.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
}
Мое приложение xamarin ios аварийно завершает работу и выдает исключение в main.cs, которое я обнаружил с помощью try n catch, и возникает ошибка «Возникло исключение Objective C. Имя: NSInternalInconsistencyException Причина: недопустимое обновление: недопустимое количество строк в раздел 0. Количество строк, содержащихся в существующем разделе после обновления (1), должно быть равно количеству строк, содержащихся в этом разделе до обновления (19), плюс или минус количество строк, вставленных или удаленных из этого раздела. (1 вставлено, 0 удалено) и плюс или минус количество строк, перемещенных в или из этого раздела (0 перемещено, 0 перемещено).
Собственная трассировка стека: ". Версия для Android работает отлично. Я очистил и пересобрал код, моя сборка папок Appdelegate уже настроена на объединение,
У меня есть проект Clean, build and rebuild
У меня установлено действие appdelegate для создания папки для объединения
Я закомментировал любой код на странице, который отображает данные на экране