EXC_BREAKPOINT (SIGTRAP) on Production Version Only

前端 未结 2 1360
小蘑菇
小蘑菇 2021-01-23 01:23

My iOS app works fine in testing but crashes on startup with the release version downloaded from the App Store. I\'ve tried retesting with the release build configuration in Xco

相关标签:
2条回答
  • 2021-01-23 01:59

    I had this same problem a few weeks ago, and it was incredibly frustrating to not be able to test it. What I did, while not a perfect solution, did allow me to test the issue.

    Go into your project's Build Settings, and down to Signing. All of the fields under Code Signing Identity should say "iOS Developer". Change them all to iOS Distribution. Build and run your app, and it should hopefully crash. Now, you'll be able to figure out what's going on through Xcode.

    Also, once you fix the problem, make sure to return those code signing identites back to normal.

    0 讨论(0)
  • 2021-01-23 02:00

    Check if you call in the app Contacts, Calendar, Reminders, Photos, Bluetooth Sharing, Microphone, Camera, Location, Health, HomeKit, Media Library, Motion, CallKit, Speech Recognition, SiriKit, TV Provider, etc.

    Since iOS 10 your app will crash if you try to access privacy-sensitive data without a usage description.

    To avoid the crash you need to add the key to ‘Info.plist’, for example:

    Privacy - Camera Usage Description
    Privacy - Photo Library Usage Description
    

    In my case I added key for camera usage but not for microphone and had the same problem.

    0 讨论(0)
提交回复
热议问题