天天看點

iOS APP運作奔潰及解決辦法總結(待更新)

1.問題 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.不難翻譯,大體意思就是這個App缺少一個擷取私有(敏感)資料的權限描述,需要我們在info.plist檔案中必須含有一個名字叫做NSPhotoLibraryUsageDescription的值來解釋為什麼應用需要使用這個資料,沒錯,擷取相冊資源的鍵值就是NSPhotoLibraryUsageDescription

解決辦法: <key>NSPhotoLibraryUsageDescription</key><string>App需要您的同意,才能通路相冊</string> <key>NSCameraUsageDescription</key><string>App需要您的同意,才能通路相機</string>

君凱商聯網-iOS-字唐名僧