简体   繁体   English

用鲨鱼分析iphone:按下开始后没有任何反应

[英]Profiling iphone with shark: Nothing happens after pressing start

I have used shark in the past with Mac applications. 我以前在Mac应用程序中使用过shark。 I am now trying to set it up for the iPhone but it doesn't want to work. 我现在正试图为iPhone设置它,但它不想工作。

I have followed these instruction from another post: Build app and launch on device 我已经从另一篇文章中了解了这些说明:构建应用程序并在设备上启动

- Launch Shark
- From the Shark menu, select Sampling->Network/iPhone Profiling
- In the Shark window, select the radio button "Control network profiling of shared computers".
- Select your iPhone in the list and optionally configure the profiling session
- Press Start to begin profiling, and Stop to end

Everything is fine except the final step. 除了最后一步,一切都很好。 I press start and nothing happens... it is really frustrating since the start button is not greyed out and shark just fail silently without any further message. 我按开始并没有任何反应......这真的令人沮丧,因为开始按钮不是灰色的,鲨鱼只是默默地失败而没有任何进一步的消息。

I have tried to: 我试过:

- Reboot
- Re-install latest XCode
- Restore my ipod
- Try different USB port
- Disabling firewall

Anyone has another suggestion or have seen that in the past? 有人有其他建议或过去见过吗?

Apparently Apple have dropped support for shark and iOS 4... we should use the app called Instruments instead. 显然Apple已经放弃了对鲨鱼和iOS 4的支持......我们应该使用名为Instruments的应用程序。

I have read this on apple dev forums: https://devforums.apple.com/message/243237 (if you can access it) 我在apple dev论坛上看过这个: https//devforums.apple.com/message/243237 (如果你可以访问它)

Same problem with XCode 3.2.3 / iOS4 / 3GS XCode 3.2.3 / iOS4 / 3GS也存在同样的问题

One person says make a release build ttp://forums.macrumors.com/showthread.php?t=619564 一个人说发布版本ttp://forums.macrumors.com/showthread.php?t = 619564

and another says make a debug build ttp://www.switchonthecode.com/tutorials/using-shark-to-performance-tune-your-iphone-app 另一个说做一个调试构建ttp://www.switchonthecode.com/tutorials/using-shark-to-performance-tune-your-iphone-app

The latter page says launch from iPhone directly, not from Xcode. 后一页说明直接从iPhone发布,而不是从Xcode发布。

I've tried combinations of debug/release, iPhone direct/from Xcode, but no success. 我已尝试过调试/发布,iPhone直接/来自Xcode的组合,但没有成功。

Apple's getting started with shark doc doesn't say anynithing about which build or how to launch your app :( http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/SharkUserGuide/GettingStartedwithShark/GettingStartedwithShark.html Apple开始使用shark doc并没有说任何关于哪个版本或如何启动你的应用程序:( http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/SharkUserGuide/GettingStartedwithShark/GettingStartedwithShark.html

Hope we can find a solution soon. 希望我们能尽快找到解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM