簡體   English   中英

Xamarin Profiler無法從VS2015連接並運行iOS應用

[英]Xamarin Profiler fails to connect and run iOS app from VS2015

我正在嘗試分析iOS應用程序以診斷內存泄漏。 當我嘗試從Visual Studio運行Xamarin Profiler時,應用程序會正常編譯並部署到設備,但是在Profiler加載后,我選擇了監視它的位暫停,然后報告“對不起,嘗試運行***時出錯了*** ”。 日志輸出如下:

INFO[2016-07-15 11:24:47Z]: ##########################################
INFO[2016-07-15 11:24:47Z]: # Xamarin Profiler version -  0.33.2.2
INFO[2016-07-15 11:24:47Z]: #  * Arch x86_64
INFO[2016-07-15 11:24:47Z]: ##########################################
DEBUG[2016-07-15 11:24:47Z]: processing command line = C:\Program Files (x86)\Xamarin\Profiler\XamarinProfiler.exe --type=ios --target=*** --device=Device lab iPhone 6 Plus --options=host:10.1.5.85,port:51759,user:simonh,name:Device lab iPhone 6 Plus,mode:usb
DEBUG[2016-07-15 11:24:52Z]: instrument added
DEBUG[2016-07-15 11:24:52Z]: instrument added
DEBUG[2016-07-15 11:24:52Z]: instrument added
INFO[2016-07-15 11:24:52Z]: Creating ios run for *** target on device Device lab iPhone 6 Plus
DEBUG[2016-07-15 11:24:52Z]: Progress report initialized successfully
DEBUG[2016-07-15 11:24:52Z]: Connecting to 10.1.5.85 as simonh
DEBUG[2016-07-15 11:24:52Z]: Connecting to Xamarin Mac agent at 10.1.5.85
INFO[2016-07-15 11:24:53Z]: StartRecording for ***
DEBUG[2016-07-15 11:25:03Z]: Registering profiler12756simon as XMA client
DEBUG[2016-07-15 11:25:03Z]: Deploying profiler agent to 10.1.5.85
DEBUG[2016-07-15 11:25:15Z]: Starting listener on port 51759
DEBUG[2016-07-15 11:25:15Z]: Getting connection from Mac remote agent
DEBUG[2016-07-15 11:25:16Z]: Got response from agent: Run cae2ff15-faf5-406a-9ce7-*** (/*** on Device lab iPhone 6 Plus) started with heapshot=ondemand,alloc,nocalls,maxframes=8,sample=cycles/1000, 
ERROR[2016-07-15 11:25:16Z]: error occured on run *** couldn't establish connection to device Device lab iPhone 6 Plus
ERROR[2016-07-15 11:25:16Z]: Error occured on run ***: couldn't establish connection to device Device lab iPhone 6 Plus
INFO[2016-07-15 11:25:16Z]: StopRecording for ***
DEBUG[2016-07-15 11:25:16Z]: Remote App stopped : cae2ff15-faf5-406a-9ce7-***
DEBUG[2016-07-15 11:25:16Z]: Remote App stopped : cae2ff15-faf5-406a-9ce7-***
DEBUG[2016-07-15 11:25:16Z]: Stopping profiler log reader
DEBUG[2016-07-15 11:25:16Z]: Stopping profiler log reader
ERROR[2016-07-15 11:25:16Z]: error occured on run *** Error on XMA listener: System.NullReferenceException: Object reference not set to an instance of an object.
   at XamarinProfiler.Core.Platforms.ProfileIosXmaRun.AcceptClient()
DEBUG[2016-07-15 11:25:16Z]: Stopping profiler log reader

我正在運行Visual Studio 2015 U3的完整更新的企業版和Windows 8.1上的最新穩定Xamarin工具,以及在運行OSX 10.11.5的MacBook Pro上使用Xamarin Studio的最新穩定工具以及最新的Xamarin Profiler。 我的測試設備是運行iOS 9.3.2的iPhone 6 Plus。 該安裝程序正常運行,完全調試等,沒有問題。

任何幫助都將受到歡迎!

這是目前已知的問題。 我們確實為此提供了一個錯誤報告,但是它是內部的,因此很遺憾,我無法共享任何細節。

我建議立即在您的Mac上直接嘗試Profiler-或使用Instruments:

https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/using_instruments_to_detect_native_leaks_using_markheap/

https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/walkthrough_Apples_instrument/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM