title: iPhone App Testing: How do I get a clean install?
body: <p>When testing an iPhone app I am developing there are certain steps I can take to induce an error which would for example cause the app to crash on loading or at some other point consistently even if I were to kill the app and load it up again.</p>
  
  <p>I would assume that in order to reset this internal inconstancy of state that is causing the crashing that I could simply reinstall the app. However, the problem will persist after reinstall and can only be resolved by installing a more recent build.</p>
  
  <p>I can only assume that some app data is being retained and reused even though it is being deleted and reinstalled (from IPA).</p>
  
  <p>Is there a way to prevent this from happening? E.g. doing some kind of 'clean install'?</p>
  
  <p>Edit: If I reinstall AND restart my phone then the problem is solved. Does this point to any issues with the app code in particular?</p>