尝试测试时:
- Cordova 9 + Angular 8 混合 iOS 9 应用程序
- 内置 XCode,添加了 XCUITest 目标
- 部署到 AppCenter 设备云测试
我在 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.
我是一名混合开发人员,我对 swift 或原生 iOS 开发一无所知。我试图研究如何做,correctly link the test xcuitest runner with swift
但我迷路了,一无所获。有人可以为新手提供一些帮助吗?