您好我在Windows 10上使用Xamarin和Visualstudio社区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()
在mac-buildhost我可以看到:
IDB.log:
/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
同时在构建时我可以在Build.log中看到经常重复的消息:
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
Visualstudio停止调试视图而不是立即停止。重新启动Visualstudio会有所帮助,直到它再次发生。
关于任何帮助,我将非常感激。
答案 0 :(得分:1)
尝试关闭并重新打开Visual Studio。这应该可以解决您的问题:)