【问题标题】:'xcrun xcresulttool export --path' file format'xcrun xcresulttool export --path' 文件格式
【发布时间】:2021-03-07 22:20:31
【问题描述】:

我用xcresulttool导出文件,但是文件的结构是这样的,谁知道文件的数据结构是什么?

【问题讨论】:

    标签: ios swift xcode build


    【解决方案1】:

    您可以使用 format 选项将输出格式化为 JSON:

    xcrun xcresulttool get --path "~/path/to/file.xcresult" --format json
    

    目前,唯一受支持的两种格式是json 或raw。 raw 是默认值,导致输出像您发布的那样。

    【讨论】:

    • 谢谢,json可读性好,但是数据结构不方便我的需求开发。最后,我用antlr做语义分析
    • 是的,生成的数据结构是一场噩梦。我最终使用了一个 Swift 脚本,其类型由 quicktype.io 生成。
    猜你喜欢
    • 1970-01-01
    • 2015-06-04
    • 2021-07-14
    • 2021-12-28
    • 1970-01-01
    • 2020-01-26
    • 2014-10-14
    • 1970-01-01
    • 2012-08-12
    相关资源
    最近更新 更多