Game stops on

Hi I have built a game in Unity 3, when exported and built in Xcode onto an 8GB iPod Touch with OS4.1 the build freezes on the front screen saying "error from debugger, the program is not being run". I can't load the game on the iPod it just stalls on this screen every time. I know this has something to do with 0S4.1 being installed on it as it worked on that iPod with an earlier OS. Obviously I want to optimize it so people can play it, can anyone tell me what might be causing this and how to fix it? An iPhone 4 with the same IOS runs it fine so guess it's got some kind of memory issue?

Can anyone tell me how to something like this?

The UNity export settings are; Target Device- iPhone +IPad, Arm 6 open GL, SDK version 3.1.3, target IOS 3.0.

The Xcode I set to Architecture (Standard (arm6 arm7), IOS device 3.2, deployment target 3.0.

SOLVED; I have followed the below before but never worked (thought it must be an issue with memory handling Unity end) Now it works so I think it's a bug with the iPod/IOS4.1/Xcode not UNity, but worth considering if you have same issues

a) quit Xcode (and therefor the GDB it is running) b) unplug device c) delete app from device (hold icon till x appears) d) turn off device e) turn on device f) plug in device (if itunes wants to sync, let it finish) g) launch Xcode

worked for m