2016-11-08 91 views
3

我在嘗試調試我的應用程序時拋出Xamarin Mac Agent(MacInCloud)時遇到了Visual Studio 2015中的問題。在Visual Studio 2015上安裝iOS應用程序時出現問題Xamarin Mac Agent

這是從輸出VS2015日誌:

Launch failed. The app 'TodoREST.iOS' could not be launched on 'iPhone 5s iOS 10.1'. Error: An error occured on client IDB420719 while executing a reply for topic xvs/idb/4.2.0.719/launch-app.

而且這是誰Xamarin通過VS提供了日誌:

Xamarin.VisualStudio.IOS.IdbClient Error: 0 : [2016-11-07 20:41:48.4612] Launch failed. The app 'TodoREST.iOS' could not be launched on 'iPhone 5s iOS 10.1'. Error: An error occured on client IDB420719 while executing a reply for topic xvs/idb/4.2.0.719/launch-app. Please check the logs for more details. System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. Parameter name: startIndex at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x0009c] in /private/tmp/source-mono-4.6.0-c8sr0/bockbuild-mono-4.6.0-branch-c8sr0/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/string.cs:1266 at System.String.Substring (System.Int32 startIndex) [0x00000] in /private/tmp/source-mono-4.6.0-c8sr0/bockbuild-mono-4.6.0-branch-c8sr0/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/string.cs:1232 at Xamarin.Messaging.IDB.MTouch.GetMTouchError (System.String message) [0x0003c] in :0 at Xamarin.Messaging.IDB.MTouch+d__8.MoveNext() [0x00233] in :0 --- End of stack trace from previous location where exception was thrown ---

image of vs after crash

一個細節:後立即應用程序在模擬器中打開它會自動關閉。

謝謝!

+0

也許:https://bugzilla.xamarin.com/show_bug.cgi?id = 45214 – SushiHangover

+0

@SushiHangover它不工作,但無論如何感謝 –

+0

你檢查Mac上的生成日誌,看看是否錯誤在那裏。 – SushiHangover

回答

0

我剛剛也有這個錯誤。從過去的經驗來看,iOS的部署問題通常與Visual Studio/Windows和Mac構建主機之間不同步的Xamarin版本有關。

確保您在Windows機器和Mac上安裝了穩定頻道的最新更新。

在Visual Studio中,選擇工具>選項> Xamarin> Other並選擇檢查現在

在Xamarin Studio中的Mac上,選擇Xamarin Studio的社區從菜單欄,並檢查更新。 ..

我有一些更新掛起,這對我有效。

+0

這對大家有幫助,但不是解決方案謝謝你@Tonic –

相關問題