无法使用 xcrun xctrace 记录保存跟踪

问题描述 投票:0回答:1

我正在尝试使用 xcrun xctrace record 命令记录内存泄漏:

xcrun xctrace record \
    --launch "com.app.bundleId" \
    --device "<device_id>" \
    --template "$TRACE_TEMPLATE" \
    --no-prompt \
    --window 300s \
    --output "trace_results.trace" \
    >> trace.log

记录工作正常,但在保存跟踪文件期间,我收到以下错误:

Terminating app due to uncaught exception 'NSRangeException', 
reason: '*** -[XRSharingArchiver encodeDataObject:]: 
data length (3190442073) makes data too large to fit in non-keyed archive'
ios xcode instruments xcrun
1个回答
0
投票

当然,我可以通过电子邮件、Twitter 或 Facebook 分享这个问题。只需告诉我您喜欢哪个平台以及联系方式或分享的处理方式即可。

© www.soinside.com 2019 - 2024. All rights reserved.