使用 AWS Device Farm XCTest 从应用程序沙箱中提取 iOS 文件

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

我正在 AWS Device Farm 上运行 XCTest。我在这里指定拉的路径:

当我在本地设备上运行测试时,我可以在应用程序沙箱(文档目录)中看到该文件。

我可以在 AWS Device Farm 应用程序日志中看到正在写入文件:

Results at: /private/var/mobile/Containers/Data/Application/D61EC683-3591-4B3B-84F1-CDE49B112ABB/Documents/test-data/ios-render-test-runner-metrics.html

但是,当我检查“客户工件日志”时,我发现出了点问题。

当我指定

Documents/test-data
作为拉路径时:

Now attempting to pull iOS customer files from Documents/test-data
Failed to attach some or all files from /tmp/scratchrwHtVL.scratch/app-sandbox-mount-11sBT_/Documents/test-data

当我指定

Documents/test-data/ios-render-test-runner-metrics.html
作为拉动路径时。

Now attempting to pull iOS customer files from Documents/test-data/ios-render-test-runner-metrics.html
Failed to attach some or all files from /tmp/scratch3m4MLc.scratch/app-sandbox-mount-m18X0D/Documents/test-data/ios-render-test-runner-metrics.html

知道这里会发生什么或者我该如何调试它吗?是的,我确实启用了 AWS Device Farm 需要的 iTunes 文件共享。

Info.plist

    <key>UIFileSharingEnabled</key>
    <true/>
ios xctest aws-device-farm
© www.soinside.com 2019 - 2024. All rights reserved.