Photo Capture and Selection Issues

I’ve been using the media.capturePhoto and media.selectPhoto successfully in previous versions. I’m using the latest Corona SDK build. Now, with the new iOS update to v10, I’m getting a crash every time I attempt to capture this feature. Below is the crash report:

Exception Type: EXC\_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC\_CORPSE\_NOTIFY Termination Reason: TCC, This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data. Triggered by Thread: 7

Can anyone please help me with this?

Thanks!

I think I solved the problem. After reading the thread from this:

https://forums.coronalabs.com/topic/65510-ios-10-and-xcode-8/

I added this:

 NSPhotoLibraryUsageDescription = "Used within app", NSCameraUsageDescription = "Used within app",

to my build.settings plist and it worked.

I think I solved the problem. After reading the thread from this:

https://forums.coronalabs.com/topic/65510-ios-10-and-xcode-8/

I added this:

 NSPhotoLibraryUsageDescription = "Used within app", NSCameraUsageDescription = "Used within app",

to my build.settings plist and it worked.