Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode AppCenter iOS设备测试-测试运行程序启动失败错误_Xcode_Visual Studio App Center_Xcuitest_Visual Studio App Center Test - Fatal编程技术网

Xcode AppCenter iOS设备测试-测试运行程序启动失败错误

Xcode AppCenter iOS设备测试-测试运行程序启动失败错误,xcode,visual-studio-app-center,xcuitest,visual-studio-app-center-test,Xcode,Visual Studio App Center,Xcuitest,Visual Studio App Center Test,尝试测试时: Cordova 9+Angular 8混合iOS 9应用程序 内置XCode,添加了XUITest目标 部署到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 abou

尝试测试时:

  • Cordova 9+Angular 8混合iOS 9应用程序
  • 内置XCode,添加了XUITest目标
  • 部署到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开发一无所知。我曾试图研究如何
将test xguitest runner与swift正确链接,但我迷路了,一事无成。有人能为新手提供一些帮助吗?

我已经开始工作了。我确保所有目标都指向同一个目标SDK,在我的例子中是iOS 9。此外,我还验证了我的.app的输出文件夹,这与我最初的想法不同。我在
appcenter测试运行
命令中更改了路径,以指向正确的路径。通过打开Xcode,展开我的项目,展开产品文件夹,然后右键单击*.app文件并选择
在finder中打开
,我找到了正确的路径