Xcode8,iOS10.0系統中,使用相機功能的時候報錯
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
主要緣由是iOS10以后,相冊,位置,麥克風等這些需要權限驗證的東西,都需要在plist文件里面添加響應的鍵值對。否則都會報錯,使用Privacy開頭的都需要添加到plist文件里面。
后面的字符串是授權時候回顯示的字樣