相关疑难解决方法(0)

隐藏奇怪的不需要的Xcode日志

使用Xcode 8+并创建新的空白项目时,运行应用程序时会显示以下日志:

2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, enable_level: 0, persist_level: 0, propagate_with_activity: 0
2016-06-13 16:33:34.406323 TestiOS10[8209:100607] Created DB, header sequence number = 248
2016-06-13 16:33:34.409564 TestiOS10[8209:100611] subsystem: com.apple.UIKit, category: HIDEvents, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0
2016-06-13 16:33:34.504117 TestiOS10[8209:100607] Created DB, header sequence number = 248
2016-06-13 16:33:34.548023 TestiOS10[8209:100607] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0
2016-06-13 …
Run Code Online (Sandbox Code Playgroud)

xcode logging ios ios10 xcode8

676
推荐指数
12
解决办法
18万
查看次数

奇怪的AQDefaultDevice日志记录

我正在播放这样一个控制器的视频:

func playMovie() {
    let path = Bundle.main.path(forResource: "xyz", ofType:"mov")
    let url = URL(fileURLWithPath: path!)

    self.player = AVPlayer(url: url)
    let layer: AVPlayerLayer = AVPlayerLayer(player: self.player)

    layer.frame = self.view.frame
    layer.videoGravity = AVLayerVideoGravityResizeAspectFill
    self.view.layer.addSublayer(layer)

    self.player.play()
}
Run Code Online (Sandbox Code Playgroud)

即使在控制器被销毁并且不再使用之后,我也会每隔一秒左右收到此日志消息:

AQDefaultDevice (173): skipping input stream 0 0 0x0
Run Code Online (Sandbox Code Playgroud)

我不是问如何隐藏这些日志.我知道如何设置OS_ACTIVITY_MODEdisable(请参阅此内容以了解如何隐藏这些日志).我担心的是即使在控制器被破坏之后,电影仍然可能以某种方式播放.我正在播放电影的方式有什么不对吗?或者我是否需要进行任何额外的清理?

xcode ios

139
推荐指数
2
解决办法
4万
查看次数

Xcode 8 iOS 10不间断设备日志

来自iOS 10 iPhone 6s +的我的Xcode 8设备日志不连续打印以下行,我无法阻止它或者不知道如何阻止它.我能以任何方式阻止这些打印吗?

Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: Status={0x80, 0x20, 00, 0x10, 00, 00, 00, 0x11, 0x1, 0x1, 00, 0x4, 0xf0, 0x2, 0x9, 00}
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: Sent message of 20 bytes
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: exit, err=0x0
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: mask=0xFF, bad=false
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: exit
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: entry
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: exit
Sep 20 14:34:42 iPhone …
Run Code Online (Sandbox Code Playgroud)

xcode ios10

58
推荐指数
3
解决办法
1万
查看次数

Google SDK在Xcode中记录两次

我从Google服务中获取了两次所有记录的消息.使用Google Analytics的标准Google实施进行测试.(这个标准配置代码被调用一次 - 即使它无关紧要)

// Configure tracker from GoogleService-Info.plist.
NSError *configureError;
[[GGLContext sharedInstance] configureWithError:&configureError];
NSAssert(!configureError, @"Error configuring Google services: %@", configureError);

// Optional: configure GAI options.
GAI *gai = [GAI sharedInstance];
gai.trackUncaughtExceptions = YES;  // report uncaught exceptions
gai.logger.logLevel = kGAILogLevelVerbose;  // remove before app release
Run Code Online (Sandbox Code Playgroud)

日志:

2016-10-23 22:06:22.354166 [692:208692] [Firebase/Core][I-COR000001] Configuring the default app.
2016-10-23 22:06:22.354 [692] <Debug> [Firebase/Core][I-COR000001] Configuring the default app.
2016-10-23 22:06:22.374475 [692:208692] <FIRAnalytics/INFO> Firebase Analytics v.3404000 started
2016-10-23 22:06:22.374 [692:] <FIRAnalytics/INFO> Firebase Analytics v.3404000 started …
Run Code Online (Sandbox Code Playgroud)

logging ios firebase firebase-analytics

2
推荐指数
1
解决办法
466
查看次数

标签 统计

ios ×3

xcode ×3

ios10 ×2

logging ×2

firebase ×1

firebase-analytics ×1

xcode8 ×1