訪問相冊出現下面崩潰提示:
[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 NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
在Info.plist里面添加1個String字段 NSPhotoLibraryUsageDescription ,Value可隨意,它將顯示在彈出來的用戶權限選擇框上。
同理使用相機時候:
[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.
添加NSCameraUsageDescription字段和value
麥克風:
[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 NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
添加NSMicrophoneUsageDescription 和value
其他類似的1樣。