App crash on device but works on simulator iOS

Ossir picture Ossir · Nov 30, 2016 · Viewed 9k times · Source

App wasn't developed by me, but now I have to add some features. Code compiles add launches on simulator but immediately crash on real device (didFinishLaunchingWithOptions never calls). Xcode doesn't show any errors. I think the problem may be in pods and frameworks but don't know how to check if this so. I reinstalled pods and recreated framework dependences in project but no app still crash. I have only this info from Xcode enter image description here enter image description here

How this info can help me? Any help appreciated.

UPD1: stacktrace enter image description here

UPD2: App crash on iOS9 and iOS10 so NSCameraUsageDescription isn't the problem

Answer

PhilippeAuriach picture PhilippeAuriach · Dec 2, 2016

had the same problem, worked on simulator but not on device and got this wonderful but minimalist stacktrace "abort_with_payload"

Turns out I just needed the "NSMicrophoneUsageDescription" key in my plist