简体   繁体   English

Xamarin Profiler无法从VS2015连接并运行iOS应用

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

I'm trying to profile an iOS application to diagnose a memory leak. 我正在尝试分析iOS应用程序以诊断内存泄漏。 When I attempt to run the Xamarin Profiler from Visual Studio the application compiles and deploys to the device ok, but after the Profiler loads and I select which bits to monitor it pauses and then reports "Sorry, something went wrong trying to run ***". 当我尝试从Visual Studio运行Xamarin Profiler时,应用程序会正常编译并部署到设备,但是在Profiler加载后,我选择了监视它的位暂停,然后报告“对不起,尝试运行***时出错了*** ”。 The log output is as follows: 日志输出如下:

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

I'm running a fully updated Enterprise version of Visual Studio 2015 U3 and latest stable Xamarin tooling on Windows 8.1, and the latest stable tooling with Xamarin Studio on a MacBook Pro running OSX 10.11.5, as well as the latest Xamarin Profiler. 我正在运行Visual Studio 2015 U3的完整更新的企业版和Windows 8.1上的最新稳定Xamarin工具,以及在运行OSX 10.11.5的MacBook Pro上使用Xamarin Studio的最新稳定工具以及最新的Xamarin Profiler。 My test device is an iPhone 6 Plus running iOS 9.3.2. 我的测试设备是运行iOS 9.3.2的iPhone 6 Plus。 The setup normally works well, full debugging etc, no issues. 该安装程序正常运行,完全调试等,没有问题。

Any help would be welcome! 任何帮助都将受到欢迎!

This is a known issue right now. 这是目前已知的问题。 We do have a bug report for this, but it is internal so unfortunately I cannot share any details. 我们确实为此提供了一个错误报告,但是它是内部的,因此很遗憾,我无法共享任何细节。

I would suggest right now to try Profiler directly on your Mac - or alternatively use Instruments: 我建议立即在您的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/using_instruments_to_detect_native_leaks_using_markheap/

https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/walkthrough_Apples_instrument/ 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