Search code examples
iosiphoneswiftxcodeios-frameworks

App crash on device but works on simulator iOS


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


Solution

  • The problem was in pods frameworks. Script generated by pods can't embed some frameworks correctly. I removed "[CP] Embed Pods Frameworks" script and add frameworks to "Embedded Binaries" by myself. And problem was solved.