Xcode8 和 swift3.0 坑爹日志

1. xcode log 问题

新建立工程,都会打印一堆莫名其妙看不懂的Log

2016-09-20 21:05:41.381791 XXJKit Swift[7794:1426829] subsystem: 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-20 21:05:41.382256 XXJKit Swift[7794:1426829] subsystem: com.apple.UIKit, category: HIDEventIncoming, 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-20 21:05:41.394538 XXJKit Swift[7794:1426817] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-20 21:05:41.542938 XXJKit Swift[7794:1426471] subsystem: com.apple.siri, category: Intents, enable_level: 1, persist_level: 1, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-20 21:05:41.601962 XXJKit Swift[7794:1426471] subsystem: com.apple.Accessibility, category: AccessibilityBundleLoading, 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-20 21:05:42.600485 XXJKit Swift[7794:1426471] subsystem: com.apple.UIKit, category: StatusBar, 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

屏蔽的方法如下:
Xcode8里边 Edit Scheme-> Run -> Arguments, 在Environment Variables里边添加
OS_ACTIVITY_MODE = Disable

这样设置只能对单个项目有效。 新创建的项目是无效的,希望 apple 在后续的 xcode 的 版本中修复这个 bug

Xcode8 和 swift3.0 坑爹日志_第1张图片
707724-e81adf182229475f.png

2. 不能注释的问题

因为苹果解决xcode ghost,把插件屏蔽了。
解决方法
打开终端,命令运行: sudo /usr/libexec/xpccachectl
然后必须重启电脑后生效

Xcode8内置了开启注释的功能,位置在这里:

Xcode8 和 swift3.0 坑爹日志_第2张图片
707724-9ace6550ccedaa6c.png

你可能感兴趣的:(Xcode8 和 swift3.0 坑爹日志)