title: how to find and fix the cause of the crash
body: <p>I submited an app to the app store and it was rejected due to:</p>
  <blockquote>
  <p>&quot;We found that your app crashed on iPhone 5 running iOS 6.1.2, which is not in compliance with the App Store Review Guidelines.</p>
  <p>Your app crashed when we:</p>
  <p>when the user taps to sign into the app, a crash is produced.</p>
  <p>This occurred when your app was used:</p>
  <ul>
  <li>On Wi-Fi</li>
  <li>On cellular network</li>
  </ul>
  <p>Your app may encounter this issue if it is using too much memory. To learn more about iOS memory usage and how to track memory usage and leaks, please see the Memory Usage Performance Guidelines.&quot;</p>
  </blockquote>
  <p>I couldn't trigger the crash again on my side. I profiled my app with the allocations instrument, and saw that that my live bytes never exceeded 12MB. With the leaks instrument I figured out that I have a few leaks (all in 3rd party sources), but they are very minor and shouldn't have cause the app to crash.. I have no clue what to do..</p>
  <ol>
  <li>Did the app really crash due to using too much memory?</li>
  <li>Could there be another reason?</li>
  <li>How should I approach this and fix the problem?</li>
  </ol>
  <p>EDIT - attached the <a href="https://www.dropbox.com/s/fnuanp4qz2n2x0i/symbolicated%20crash%20log.rtf" rel="nofollow noreferrer">crash log</a></p>
  <p>Check out <a href="https://stackoverflow.com/questions/12099211/ad-hoc-builds-crashing-on-device-only-asihttprequest">this</a>&amp;<a href="https://github.com/pokeb/asi-http-request/issues/341" rel="nofollow noreferrer">that</a>, it seems like using ASIHTTPRequest framework is causing the crash some how, but only on ad-hoc or distribution builds, which makes debugging it more of a headache. <strong>Is it really the cause? Should I switch to AFNetworking instead?</strong></p>