在尝试测试时:
中
我在iOS 12.3以上的设备上做UI测试没有问题
在iOS 12.3下面,在执行设备UITest时,AppCenter中出现了以下错误:
The test runner failed to start.The XCUITest-RUnner failed to start.
You can normally find clues about the cause of this in the device log.
不幸的是,设备日志是空的。
我联系了AppCenter支持部门,几天后得到了一位工程师的输入,这就是我的回应:
The problem is that your XCUITest Runner is not correctly linked with Swift.
Before iOS 12.3, the Swift dylibs need to be shipped with iOS applications (the -Runner is an iOS application). Starting in iOS 12.3, the Swift dylibs are part of the OS and do not need to be bundled in the .app.
You need to adjust your Xcode build settings to generate a XCUITest Runner that is compatible with iOS 12 - 13.x.
I don't know how to do this so I cannot offer specific advice.
I hope you can find a StackOverflow post or some Apple documentation.
我是一个混合开发人员,我对快速或本地iOS开发一无所知。我试着研究如何correctly link the test xcuitest runner with swift
,但我迷路了,什么也没有得到。有人能为新手提供一些帮助吗?
发布于 2020-03-18 14:58:38
我让它起作用了。我确保所有目标都指向相同的目标SDK,在我的例子中是iOS 9,而且,我验证了我的.app的输出文件夹,这不是我最初想的那样。我将appcenter test run
命令中的路径更改为指向正确的路径。通过打开Xcode、展开我的项目、展开产品文件夹,然后右键单击*.app文件并选择open in finder
,我找到了正确的路径。
https://stackoverflow.com/questions/60740817
复制相似问题