Application error on the device, but works on the iOS simulator

The application was not developed by me, but now I need to add some features. Compiling the code adds launch to the simulator, but immediately crashes on the real device (didFinishLaunchingWithOptions never calls). Xcode does not show any errors. I think the problem may be in containers and frameworks, but I don’t know how to check it. I reinstalled the containers and recreated the structure dependencies in the project, but the application still did not work. I have only this information from Xcode enter image description here enter image description here

How can this information help me? Any help was appreciated.

UPD1: stacktrace enter image description here

UPD2: application crashes on iOS9 and iOS10, so NSCameraUsageDescription is not a problem

+7
ios iphone xcode swift ios-frameworks
source share
3 answers

The problem was the module frameworks. Script generated by modules cannot correctly embed some frameworks. I removed the "[CP] Embed Pods Frameworks" Script and added the frameworks to the "embedded binaries". And the problem has been resolved.

+3
source share

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

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

+5
source share

If the abort_with_payload error abort_with_payload , then the probability that Info.plist is missing the UsageDescription any secret key, check for something that is missing, or Apple has changed / added a new usage description for the camera, photos, location, etc., which you use.

+2
source share

All Articles