最近把Xcode升级到了Xcode9.0之后发现Xcode的打印会有一些问题:
模拟器加载xib的时候会有一些乱七八糟的日志打印出来
[MC] Lazy loading NSBundle MobileCoreServices.framework
[MC] Loaded MobileCoreServices.framework
[MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/llkj/Library/Developer/CoreSimulator/Devices/70E90BDF-40FB-420D-AA7C-8EDF5A702069/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
+ (instancetype)loginRegisterView {
return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] firstObject];
}
点击UITextField的时候也会打印一些奇怪的问题:
[MC] Reading from private effective user settings.
都是运行在iOS11设备的模拟器上会有打印,虽然不影响程序运行,但是自己看着也是不舒服的。
解决方案:
1.从xcode菜单中:Product > Scheme > Edit Scheme
2.Environment Variables 添加一栏name:OS_ACTIVITY_MODE Value:disable