简体   繁体   中英

Profiling iphone with shark: Nothing happens after pressing start

I have used shark in the past with Mac applications. I am now trying to set it up for the iPhone but it doesn't want to work.

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.

I have read this on apple dev forums: https://devforums.apple.com/message/243237 (if you can access it)

Same problem with XCode 3.2.3 / iOS4 / 3GS

One person says make a release build 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

The latter page says launch from iPhone directly, not from Xcode.

I've tried combinations of debug/release, iPhone direct/from Xcode, but no success.

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

Hope we can find a solution soon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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