简体   繁体   中英

Swift App crash on device work fine on simulator

I have an app that works fine on simulator but when I run it on Ipad it crashes randomly. I am really in big trouble I have to submit the app tomorrow.

I cant understand the crash report, and the app is big I have 40 files, and many segues and http requests. its impossible tocheck on each file! where to look?

does this hint on anything:

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000010014c164
Triggered by Thread:  0

Please guys any help will be great, am in big trouble!

Update:

the application has many api calls, after doing like 4 - 5 calls the app exit and stay in the background.

I can't know if its the actual issue, but I am guessing here because staying on the same page, the app won't crash.

what should I do guys?

It is a little hard to give you concrete help with this information.

I would suggest you add a crash report tool to your app (like Crashlytics ). That way you will get a readable report when an actual device crash and a will be more reasonable to fix.

It is a good practice to have a crash report tool in any production app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM