iOS10 相机的闪退

    xiaoxiao2022-06-29  35

    iOS10 相机的闪退问题:

    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文件里添加一个“NSContactsUsageDescription ”的Key,添加一个描述给Value。

    需要在应用的info.plist里加入(使用source code模式):

    <key>NSCameraUsageDescription</key> <string>cameraDesciption</string> <key>NSContactsUsageDescription</key> <string>contactsDesciption</string> <key>NSMicrophoneUsageDescription</key> <string>microphoneDesciption</string> <key>NSPhotoLibraryUsageDescription</key> <string>photoLibraryDesciption</string>

    其中这个string值是可以随意写的。

    转载请注明原文地址: https://ju.6miu.com/read-1124976.html

    最新回复(0)