title: iOS temporary folder location
body: <p>My app has just been rejected by Apple because it was storing temporary or cache files in the documents directory. Right. Their rejection message states:</p>
  
  <blockquote>
    <p>Temporary files used by your app should only be stored in the <code>/tmp</code> directory</p>
  </blockquote>
  
  <p>I suppose it is that besides the <strong>Documents</strong> and <strong>Library</strong> in the Application's folder.</p>
  
  <p>I am now trying to debug this issue in the iPhone Simulator, and when I use <code>NSTemporaryDirectory()</code>, the value I get in the Xcode debugger is <code>/var/folders/yj/gnz1c7156c7d6d4fj429yms40000gn/T/tempzip.zip</code>, and not <code>/Users/me/Library/Application Support/iPhone Simulator/5.1/Applications/8F71AB72-598C-427A-A116-36833D3209F7/tmp/tempzip.zip</code>.</p>
  
  <p>So: is <code>NSTemporaryDirectory()</code> having a different behaviour using the iPhone Simulator, and, is it possible to track the application's temporary directory at debug time ?</p>