Ionic app crashes in iPhone5 but not in the emulator

Hi All,

I’m testing my app with iPhone5 and suddenly with my new build , facebook login stopped working. (Im using $cordovaOauth.facebook) , It works in the IOS emulator by connecting to the same public web api

My question is, how u guys normally check the error logs when it crashes on the actual phone ?

Im using ubertesters to create my .ipa file. They have an SDK as well, but I couldnt get it running in my ionic app. it gives the following error

>  Uncaught ReferenceError: cordova is not defined

I have setup the script as they say in the article.

<script src="js/ng-cordova.min.js"></script>
<script src="cordova.js"></script>
 <script src="js/app.js"></script>
 <script src="js/ubertesters.js"></script>

I would appreciate if someone can tell me how to debug a situation like this. (coz it works in the ios emulator)

thanks in advance