应用程序在调试模式下已被终止。

6
当我尝试在Windows上使用Visual Studio 2017调试iOS的Xamarin项目时,会显示“应用程序已终止”的消息。为了调试,我使用MacinCloud进行Mac。请问我在Visual Studio中的哪些设置可能出错了?以下是我在Visual Studio的输出窗口中得到的内容。
 Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/Xamarin.iOS.dll [External]
Resolved pending breakpoint for 'UIKit.UIApplication.Main(string[], string, string)' to /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/src/UIKit/UIApplication.cs:61 [0x00000].
Resolved pending breakpoint for 'UIKit.UIApplication.Main(string[], System.Type, System.Type)' to /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/src/UIKit/UIApplication.cs:68 [0x00000].
Resolved pending breakpoint for 'UIKit.UIApplication.Main(string[])' to /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/src/UIKit/UIApplication.cs:73 [0x00000].
Resolved pending breakpoint for 'UIKit.UIApplication.Main(string[], System.IntPtr, System.IntPtr)' to /Users/builder/data/lanes/5665/db807ec9/source/xamarin-macios/src/UIKit/UIApplication.cs:78 [0x00000].
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.dll [External]
Thread started:  #2
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/ATSDriver.iOS.exe
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/ATSDriver.dll
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/Xamarin.Forms.Platform.iOS.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/Xamarin.Forms.Core.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Runtime.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.ObjectModel.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Core.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/Mono.Security.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Xml.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.ComponentModel.Composition.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Collections.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Diagnostics.Debug.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Threading.Tasks.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Threading.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Globalization.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.ComponentModel.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Xml.ReaderWriter.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Reflection.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Linq.Expressions.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.IO.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Dynamic.Runtime.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/Xamarin.Forms.Platform.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Net.Http.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Runtime.Serialization.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.ServiceModel.Internals.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Runtime.Extensions.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Linq.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Reflection.Extensions.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/Xamarin.Forms.Xaml.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Text.RegularExpressions.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Resources.ResourceManager.dll [External]
Loaded assembly: /Users/user135744/Library/Developer/CoreSimulator/Devices/4CAF0EF4-6D74-4DFE-868D-77521B5F3ECC/data/Containers/Bundle/Application/504D0970-FEE2-496C-B5B5-CEADBFA35891/ATSDriver.iOS.app/.monotouch-64/System.Diagnostics.Tools.dll [External]
The app has been terminated.

我该如何调试这个问题?有没有办法找出它为什么被终止了?


你尝试过清理项目并重新构建吗?这是在模拟器和真实设备上都发生吗? - Claudio Redi
  1. 更新 Nuget 包。
  2. 删除 bin 和 obj 文件夹,重新构建。
- ColeX
1个回答

0
我的问题是iPad上安装了比已安装的Xcode版本更新的iOS版本。升级Xcode和Xamarin后,我能够在设备上部署应用程序。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接