- 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>
复制代码