iOS10 Xcode8问题汇总

2016-11-02  本文已影响0人  love埖落葙缌盡

iOS10 Xcode8问题汇总

http://blog.csdn.net/zhengyanfeng1989/article/details/51899191

【1】、Xcode8代码出现ubsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0 2016-09-14 17:18:55.843428 MyApp[6880:340837]

解决办法: 【product】-【scheme】-【Edit Scheme】-【Run】-【Argument】-【Environment Variable】添加keyValue【OS_ACTIVITY_MODE  disable】可以停止输出打印此日志

【2】在iOS10中,如果你的App想要访问用户的相机、相册、麦克风、通讯录等等权限,都需要进行相关的配置,不然会直接crash。

需要在info.plist中添加App需要的一些设备权限。

NSBluetoothPeripheralUsageDescription

访问蓝牙

NSCalendarsUsageDescription

访问日历

NSCameraUsageDescription

相机

NSPhotoLibraryUsageDescription

相册

NSContactsUsageDescription

通讯录

NSLocationAlwaysUsageDescription

始终访问位置

NSLocationUsageDescription

位置

NSLocationWhenInUseUsageDescription

在使用期间访问位置

NSMicrophoneUsageDescription

麦克风

NSAppleMusicUsageDescription

访问媒体资料库

NSHealthShareUsageDescription

访问健康分享

NSHealthUpdateUsageDescription

访问健康更新

NSMotionUsageDescription

访问运动与健身

NSRemindersUsageDescription

访问提醒事项

上一篇 下一篇

猜你喜欢

热点阅读