2016-12-09 80 views
1

您好,我在Windows 10上使用Xamarin與Visualstudio Community 2015作爲構建主機我使用帶有iPhone5的Mac OSX 10.11.5(El Capitan)iOS 10.1模擬器 我可以構建/啓動/調試我的應用程序而無需進行約30分鐘的問題,即VisualStudio的後 構建應用程序比上啓動應用程序在模擬器的輸出窗口顯示:在iPhone模擬器啓動應用程序在一段時間後失敗

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. 

在Ide.log在Windows機器上,我可以看到:

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會有所幫助,直到它再次發生。

關於任何幫助,我將非常感激。

回答

1

嘗試關閉並重新打開Visual Studio。這應該可以解決您的問題:)

+0

我已經寫過「重新啓動Visualstudio幫助,直到它再次發生。」但那不是那種我正在尋找的解決方案.. – Eisen

+0

我只有兩次這個問題。我認爲問題出在Mac代理上,Xamarin在iMac上執行。重新啓動VS,也重新啓動代理的新實例。 – Magic

相關問題