6

在 Xcode -> Organizer -> My iPhone -> Console 的 iPhone 控制台日志(参见下面的示例)中转储了大量的低级系统调试通知。

这有效地淹没了我自己的开发输出。(我正在使用 3rd 方框架(不是 Xcode)制作应用程序,所以我只使用 Xcode 来查看手机的控制台输出)。

更糟糕的是,iPhone 控制台日志似乎只返回一天或顶部几百行,所以如果我昨天发生崩溃,当我到达办公室时,它肯定会被冗长的系统通知覆盖调试。

我如何 a) 删除系统通知,b) 延长日志的长度,c) 将日志通过管道传输到 bash 终端,以便我可以对其执行“grep”,或任何其他方式来更好地了解我自己调试输出?

(例如,在 Android 上,您可以adb logcat -s MyApp只查看来自 MyApp 的消息)

这是淹没 iPhone 日志的那种东西的示例:

Dec 12 10:11:02  installd[31] <Error>: 0x2d5000 filter_attributes: Info.plist keys requested via MobileInstallationLookup/Browse in client Xcode (via mobile_installation_proxy) were not found in MobileInstallation's cache. Please file a bug requesting that these keys be added: <CFBasicHash 0x1d59e7a0 [0x3af630f0]>{type = mutable set, count = 18,
    entries =>
        0 : <CFString 0x3af4f9e4 [0x3af630f0]>{contents = "CFBundlePackageType"}
        1 : <CFString 0x1d59e650 [0x3af630f0]>{contents = "BuildMachineOSBuild"}
        2 : <CFString 0x3af50a34 [0x3af630f0]>{contents = "CFBundleResourceSpecification"}
        3 : <CFString 0x1d5713e0 [0x3af630f0]>{contents = "DTPlatformBuild"}
        4 : <CFString 0x3af4d784 [0x3af630f0]>{contents = "DTCompiler"}
        5 : <CFString 0x3af4f554 [0x3af630f0]>{contents = "CFBundleSignature"}
        6 : <CFString 0x3af50214 [0x3af630f0]>{contents = "DTSDKName"}
        7 : <CFString 0x1d580d60 [0x3af630f0]>{contents = "NSBundleResolvedPath"}
        8 : <CFString 0x3af4cea4 [0x3af630f0]>{contents = "UISupportedInterfaceOrientations"}
        10 : <CFString 0x3af54e74 [0x3af630f0]>{contents = "DTXcode"}
        13 : <CFString 0x3af54ea4 [0x3af630f0]>{contents = "CFBundleInfoDictionaryVersion"}
        16 : <CFString 0x3af522f4 [0x3af630f0]>{contents = "CFBundleSupportedPlatforms"}
        17 : <CFString 0x1d590660 [0x3af630f0]>{contents = "DTXcodeBuild"}
        18 : <CFString 0x1d59af70 [0x3af630f0]>{contents = "UIStatusBarTintParameters"}
        19 : <CFString 0x3af50e44 [0x3af630f0]>{contents = "DTPlatformVersion"}
        20 : <CFString 0x3af53be4 [0x3af630f0]>{contents = "DTPlatformName"}
        21 : <CFString 0x3af54c74 [0x3af630f0]>{contents = "CFBundleDevelopmentRegion"}
        22 : <CFString 0x1d599230 [0x3af630f0]>{contents = "DTSDKBuild"}
    }
4

1 回答 1

1

非常好的问题!我强烈建议您使用这个很棒的工具:

如果你喜欢,请告诉我。:-)

于 2013-04-15T23:28:11.003 回答