Xamarin形式的iOS应用程序仅在11.2 iOS版本的版本中崩溃

时间:2018-02-01 05:53:29

标签: xamarin.forms xamarin.ios

我的应用程序在11.2 iOS版本的发布模式下崩溃了。但应用程序适用于10.3。 我用Google搜索并无法制作它。 我无法弄清楚问题的原因是什么。我写了日志,这是我在错误文件中得到的。

  

System.NullReferenceException:未将对象引用设置为对象的实例     在System.Threading.Tasks.Task.AddTaskContinuationComplex(System.Object tc,System.Boolean addBeforeOthers)< 0x100b050f0 + 0x00060> in:0     在System.Threading.Tasks.Task.AddTaskContinuation(System.Object tc,System.Boolean addBeforeOthers)< 0x100b053a0 + 0x000cb> in:0     在System.Threading.Tasks.Task.SetContinuationForAwait(System.Action continuationAction,System.Boolean continueOnCapturedContext,System.Boolean flowExecutionContext,System.Threading.StackCrawlMark& stackMark)< 0x100b03710 + 0x00167> in:0     在System.Runtime.CompilerServices.TaskAwaiter.OnCompletedInternal(System.Threading.Tasks.Task task,System.Action continuation,System.Boolean continueOnCapturedContext,System.Boolean flowExecutionContext)< 0x100b3b4c0 + 0x0004b> in:0     在System.Runtime.CompilerServices.TaskAwaiter.UnsafeOnCompleted(System.Action continuation)< 0x100b3b230 + 0x00027> in:0     at(wrapper managed-to-native)System.Object:__ icall_wrapper_mono_gsharedvt_constrained_call(intptr,intptr,intptr,intptr,intptr)     在System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AwaitUnsafeOnCompleted [TAwaiter,TStateMachine](TAwaiter& awaiter,TStateMachine& stateMachine)< 0x100ba9570 + 0x0026b> in:0   ---从抛出异常的先前位置开始的堆栈跟踪结束---     在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()< 0x100b38080 + 0x00028> in:0     在System.Runtime.CompilerServices.AsyncMethodBuilderCore +<> c.b__6_1(System.Object state)< 0x100b3ace0 + 0x00053> in:0     在System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object state)< 0x100af81b0 + 0x00063> in:0     在System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx)< 0x100af1140 + 0x00193> in:0     在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,System.Object state,System.Boolean preserveSyncCtx)< 0x100af1100 + 0x0002b> in:0     在System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()< 0x100af8120 + 0x0005b> in:0     在System.Threading.ThreadPoolWorkQueue.Dispatch()< 0x100af5fa0 + 0x001cb> in:0     在ObjCRuntime.Runtime.ThreadPoolDispatcher(System.Func`1 [TResult] callback)< 0x101587fc0 + 0x0003f> in:0     在System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()< 0x100af7f00 + 0x00087> in:0

1 个答案:

答案 0 :(得分:0)

我在登录页面中使用了动态变量。

此问题已修复,而不是使用动态我将其更改为模型

请参阅此Xamarin Forms App crashing in release mode on iOS but works in debug mode