views:

363

answers:

3

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?

A: 

Same problem here. Not sure how to fix it.

Tomas Franzén
Yes, I'm having the same problem. This is new behavior since upgrading to XCode 3.2.3 and iOS 4.
zkarcher
I have XCode 3.2.3 and iOS4 too...Too bad I can't downgrade to iphone os 3, I don't need iOS 4 :-(
Steph
A: 

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.

Kenji
+4  A: 

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)

Steph
This really sux, shark is way better than instruments.
Mr.Gando
Make sure to manually add the "Time Profiler" instrument. It is considered the replacement for Shark.
nschum