调用 EtceteraBinding.promptForPhoto 导致 iOS 10 立即崩溃。
public void TakePhotoTapped() {
#if UNITY_IOS
EtceteraBinding.promptForPhoto(0.2f, PhotoPromptType.Camera, 0.8f, true);
#endif
}
Xcode 吐出这个日志。它看起来确实像某种权限问题?请帮忙。
2016-10-11 11:46:35.758167 xxx[1643:458841] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
2016-10-11 11:46:49.760643 xxx[1643:458841] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2016-10-11 11:46:49.768609 xxx[1643:458841] [MC] Reading from public effective user settings.
2016-10-11 11:47:02.450381 xxx[1643:459135] [access] 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.