Visual studio 2015 一段时间后,在iPhone模拟器中启动应用程序失败

Visual studio 2015 一段时间后,在iPhone模拟器中启动应用程序失败,visual-studio-2015,build,xamarin.ios,monotouch.dialog,Visual Studio 2015,Build,Xamarin.ios,Monotouch.dialog,您好,我在Windows 10上使用Xamarin和Visualstudio Community 2015 作为构建主机,我使用Mac OSX 10.11.5(El Capitan)和iPhone5 iOS 10.1模拟器 在visualstudio之后,我可以在大约30分钟内毫无问题地构建/启动/调试我的应用程序 在模拟器中启动应用程序时,生成应用程序。输出窗口显示: Launching 'myapp.iOS' on 'iPhone 5 iOS 10.1'... Launch failed.

您好,我在Windows 10上使用Xamarin和Visualstudio Community 2015 作为构建主机,我使用Mac OSX 10.11.5(El Capitan)和iPhone5 iOS 10.1模拟器 在visualstudio之后,我可以在大约30分钟内毫无问题地构建/启动/调试我的应用程序 在模拟器中启动应用程序时,生成应用程序。输出窗口显示:

Launching 'myapp.iOS' on 'iPhone 5 iOS 10.1'...
Launch failed. The app 'myapp.iOS' could not be launched on 'iPhone 5 iOS  10.1'. Error: The post for client vs10440Matze on topic xvs/idb/4.2.1.64/launch-app has been cancelled. Please check the logs for more details.
The app has been terminated.
在windows计算机上的Ide.log中,我可以看到:

Xamarin.Messaging.Client.MessagingClient Warning: 0 : [2016-12-09   10:48:38.4481] The post for client vs10440Matze on topic xvs/idb/4.2.1.64 /launch-app has been cancelled
System.OperationCanceledException: The operation was canceled.
 at System.Threading.CancellationToken.ThrowOperationCanceledException()
 at System.Threading.CancellationToken.ThrowIfCancellationRequested()
 at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext()
Visualstudio会立即停止调试视图。重新启动Visualstudio会有所帮助,直到它再次发生


如果有任何帮助,我将不胜感激。

请尝试关闭并重新打开Visual Studio。这应该可以解决您的问题:)

我已经写过“重新启动Visualstudio会有帮助,直到它再次出现”。但这不是我正在寻找的解决方案。我只收到过两次这个问题。我认为问题在于Xamarin在iMac上执行的Mac代理。重新启动VS,同时重新启动代理的新实例。
/Users/matze/Library/Caches/Xamarin/XMA/Agents/IDB/4.2.1.64/mlaunch --launchsim "/Users/matze/Library/Caches/Xamarin/mtbs/builds/myapp.iOS/85cb5165734f657bdd8719a918480bd0/bin/iPhoneSimulator/Debug/myapp.iOS.app" --device=:v2:udid=7E78B8AC-ACAB-4A11-AC9B-443766774A58 -argument=-monodevelop-port -argument=56852 --sdkroot "/Applications/Xcode.app/Contents/Developer" -sdk 10.1
Xamarin.Messaging.IDB.MTouch Information: 0 : [2016-12-09 00:31:41.4471] MTouch Run Terminated
Xamarin.Messaging.Client.MessagingClient Error: 0 : [2016-12-09 00:31:41.5180] An error occured on client IDB42164 while executing a reply for topic xvs/idb/4.2.1.64/launch-app
Xamarin.Messaging.Exceptions.MonotouchException: An error occurred while executing MTouch
at Xamarin.Messaging.IDB.MTouch+<RunAsync>d__8.MoveNext () [0x0024a] in <003fb8ef983c4ea5910c8a47fc9dde09>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:535
at Xamarin.Messaging.IDB.MTouch+<RunAsync>d__7.MoveNext () [0x0007b] in <003fb8ef983c4ea5910c8a47fc9dde09>:0
Xamarin.Messaging.Client.ApplicationMessageExtensions Warning: 0 : [2016-12-09 02:09:28.1124] Payload Type Xamarin.Messaging.Build.Contracts.ExecuteTaskMessage is incompatible with the requested content type Xamarin.Messaging.Build.Contracts.CopyItemMessage
Xamarin.Messaging.Client.ApplicationMessageExtensions Warning: 0 : [2016-12-09 02:09:28.5254] Payload Type Xamarin.Messaging.Build.Contracts.CopyItemMessage is incompatible with the requested content type Xamarin.Messaging.Build.Contracts.GetItemMessage
Xamarin.Messaging.Client.ApplicationMessageExtensions Warning: 0 : [2016-12-09 02:09:27.6058] Payload Type Xamarin.Messaging.Build.Contracts.CompareItemsMessage is incompatible with the requested content type Xamarin.Messaging.Build.Contracts.GetItemMessage