我在嘗試調試我的應用程序時拋出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 ---
一個細節:後立即應用程序在模擬器中打開它會自動關閉。
謝謝!
也許:https://bugzilla.xamarin.com/show_bug.cgi?id = 45214 – SushiHangover
@SushiHangover它不工作,但無論如何感謝 –
你檢查Mac上的生成日誌,看看是否錯誤在那裏。 – SushiHangover