Need to help with reading the crash logs

When I submitted my app, they rejected it because the app crashed when implementing the app. They sent me the crash logs. Can someone guide me on how to read them and navigate me to identify the help?

Answered by DTS Engineer in 799142022

Thanks for sharing the crash log. Upon reviewing it, the app appears to have crashed because it attempted to access the microphone without the necessary NSMicrophoneUsageDescription key in its Info.plist file. The system is requiring this key to protect user privacy, and without it, the app won't be able to use the microphone features.

"termination" : {"flags":518,"code":0,"namespace":"TCC","details":["This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data."]},

To resolve this issue, you'll need to add the NSMicrophoneUsageDescription key to your Info.plist file. Please provide a clear and concise explanation to the users about how your app uses this data. You can find more detailed information on how to do this in the Apple documentation: NSMicrophoneUsageDescription

Make sure to recompile and touch your app's binary after making the changes for them to take effect.

Let me know if you have any trouble figuring it out. Happy coding!

Accepted Answer

Thanks for sharing the crash log. Upon reviewing it, the app appears to have crashed because it attempted to access the microphone without the necessary NSMicrophoneUsageDescription key in its Info.plist file. The system is requiring this key to protect user privacy, and without it, the app won't be able to use the microphone features.

"termination" : {"flags":518,"code":0,"namespace":"TCC","details":["This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data."]},

To resolve this issue, you'll need to add the NSMicrophoneUsageDescription key to your Info.plist file. Please provide a clear and concise explanation to the users about how your app uses this data. You can find more detailed information on how to do this in the Apple documentation: NSMicrophoneUsageDescription

Make sure to recompile and touch your app's binary after making the changes for them to take effect.

Let me know if you have any trouble figuring it out. Happy coding!

Thanks so much! For accessing the NSCameraUsageDescription key, we need to verify and request authorization as suggested in documentation. Was it compulsory or not? Because one of my app review messages said, "1. The app crashed the first time after tapping 'Allow' in the camera permission request. The app then kept crashing upon relaunch."

Here's the documentation https://developer.apple.com/documentation/avfoundation/capture_setup/requesting_authorization_to_capture_and_save_media

Need to help with reading the crash logs
 
 
Q