在info.plist文件下添加
<key>NSContactsUsageDescription</key><string>請求訪問通訊錄</string>
相機相冊權限
<key>NSCameraUsageDescription</key>
<string>需要打開您的相機</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>需要打開您的相冊</string>
<key>NSAppleMusicUsageDescription</key><string>App需要您的同意,才能訪問媒體資料庫</string><key>NSBluetoothPeripheralUsageDescription</key><string>App需要您的同意,才能訪問藍牙</string><key>NSCalendarsUsageDescription</key><string>App需要您的同意,才能訪問日歷</string><key>NSCameraUsageDescription</key><string>App需要您的同意,才能訪問相機</string><key>NSHealthShareUsageDescription</key><string>App需要您的同意,才能訪問健康分享</string><key>NSHealthUpdateUsageDescription</key><string>App需要您的同意,才能訪問健康更新 </string><key>NSLocationAlwaysUsageDescription</key><string>App需要您的同意,才能始終訪問位置</string><key>NSLocationUsageDescription</key><string>App需要您的同意,才能訪問位置</string><key>NSMicrophoneUsageDescription</key><string>App需要您的同意,才能訪問麥克風</string><key>NSMotionUsageDescription</key><string>App需要您的同意,才能訪問運動與健身</string><key>NSPhotoLibraryUsageDescription</key><string>App需要您的同意,才能訪問相冊</string><key>NSRemindersUsageDescription</key><string>App需要您的同意,才能訪問提醒事項</string>