EXC_BREAKPOINT (SIGTRAP) on Production Version Only

前端 未结 2 1361
小蘑菇
小蘑菇 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 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.

提交回复
热议问题