- Xcode打開IOS項目
- 在項目總目錄中找到
Resources/<項目名>-info.plist
文件
- 右鍵選擇Open As Source Code
- 在
<dict></dict>
節點輸入如下內容
<key>NSPhotoLibraryUsageDescription</key>
<string>App須要您的贊成,才能訪問相冊</string>
<key>NSCameraUsageDescription</key>
<string>App須要您的贊成,才能訪問相機</string>
<key>NSMicrophoneUsageDescription</key>
<string>App須要您的贊成,才能訪問麥克風</string>
<key>NSLocationUsageDescription</key>
<string>App須要您的贊成,才能訪問位置</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>App須要您的贊成,才能在使用期間訪問位置</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>App須要您的贊成,才能始終訪問位置</string>
<key>NSCalendarsUsageDescription</key>
<string>App須要您的贊成,才能訪問日曆</string>
<key>NSRemindersUsageDescription</key>
<string>App須要您的贊成,才能訪問提醒事項</string>
<key>NSMotionUsageDescription</key>
<string>App須要您的贊成,才能訪問運動與健身</string>
<key>NSHealthUpdateUsageDescription</key>
<string>App須要您的贊成,才能訪問健康更新</string>
<key>NSHealthShareUsageDescription</key>
<string>App須要您的贊成,才能訪問健康分享</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>App須要您的贊成,才能訪問藍牙</string>
<key>NSAppleMusicUsageDescription</key>
<string>App須要您的贊成,才能訪問媒體資料庫</string>
複製代碼