Looking for memory leaks on iPhone

As a lot of people knows, there’s no garbage collector in iPhone. So you have to handle all the memory calls by yourself.

I discover a useful tool to help with memory debugging: TraceAlloc.
It’s a Library that helps you into catching memory leaks.

More details here.


Fix iPhone Simulator’s missing Photo db

It happens: for same mysterious reason your iPhone Simulator has an empty Photo DB.
I cannot find a way to restore, even re-installing the simulator.
But…. If you have a jailbroken iPhone (or iPod Touch, of curse) you can do it.

Follow the steps:

  1. Identify you iPhone ip address in your local network, usually
  2. Open a terminal in your mac and go to the following directory:
    cd /Users/<UserName>/Library/Application Support/iPhone Simulator/User/Media
    Change UserName in your default user.
  3. Now type the following command
    scp -r root@*

Done! Have fun!!

Using SDK applications on pwned development iPhones/iPod Touch

Erica wrote an interesting article that explains how to use SDK generated application on iPhone running a pwned version of iPhoneOS 2.0.
It will be useful for those who try to run their SDK application for testing purpose.
Read the full article here.

For me… I’m still waiting for official release of the iPhone 2.0 :sigh:

Apple SDK: EU developer MUST wait

I applied the very first day for the iPhone SDK developer program.
Just two days ago a received the following email from Apple:

Thank you for expressing interest in the iPhone Developer Program. We have received your enrollment request. At this time, the iPhone Developer Program is only available in the US and will expand to other countries during the beta period. We will contact you again regarding your enrollment status at the appropriate time.

Thank you for applying.

The most important thing for me is: “is only available in the US”.
Why Apple do not want to expand to the rest of the World ???

I bought a MacBookPro for starting developing on iPhone/iPod Touch, and now I HAVE to wait ????

It’s not fair.