XCUIApplication large launchEnviroment导致启动失败

时间:2017-12-11 12:35:46

标签: ios swift4 xcode9 xctest

当尝试使用大型启动环境字符串从UITest模块启动应用程序时,由于某种原因,应用程序卡住加载并开始反复关闭应用程序。我很好奇是否有其他人有这个问题。以下是一些示例代码:

let app = XCUIApplication()
app.launchEnvironment["my-key"] = "really long string"
app.launch() <-- this line open and closes the app loads of times, but never fully completes

当评论大字符串时,一切都很好。有谁知道为什么会这样?

0 个答案:

没有答案