测试目标`MyAppTests`遇到错误(提前意外退出,操作从未完成引导 - 将不尝试重新启动) [英] Test target `MyAppTests` encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)

查看:1704
本文介绍了测试目标`MyAppTests`遇到错误(提前意外退出,操作从未完成引导 - 将不尝试重新启动)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试在设备上运行bot时,会出现问题。持续集成

Problem arise with continuous integration when try to run bot on device.


测试目标 MyAppTests 遇到错误(早期意外退出,操作从未完成引导 - 不会尝试重新启动)

Test target MyAppTests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)

它发生?任何想法?

推荐答案

以下代码适用于我。

我不知道是否可以跳过某些步骤,因此我将其全部发布。 p>

The following worked for me.
I don't know if some of the steps can be skipped, so I'm posting all of it.


  1. 将CocoaPods更新至版本min。 1.1.0在开发机和服务器上 sudo gem update cocoapods

  2. 根据CocoaPods中的终端输出设置 Swift标准库更改为

  3. 将OS X服务器升级到最新版本(见下文)。

  4. 升级Xcode

  5. 再次通过服务器应用程序选择Xcode。

  6. 创建并登录作为测试用户Xcode所需的UI测试。

  7. 在服务器上打开Xcode并安装缺少的组件(它会在启动时询问)。

  8. 重新启动服务器。 >
  1. Update CocoaPods to version min. 1.1.0 on both dev machine and server sudo gem update cocoapods.
  2. As per terminal output during CocoaPods set Always Embed Swift Standard Libraries to No in the projects settings. I did it for the main, test and UI test targets.
  3. Upgrade OS X Server to latest version (see more below).
  4. Upgrade Xcode to latest version both on dev machine and server.
  5. Select Xcode through server app again.
  6. Create and log in as the test user Xcode required for UI tests. (trouble shooting below)
  7. Open Xcode on the server and install missing components (it will ask on launch).
  8. Reboot server.

我的集成以后进行了升级,您提到的错误已消失。

My integrations did an upgrade afterwards and the errors you mentioned were gone.

应该提到,在我的机器人,我有一个预集成脚本,重新安装我的所有CocoaPods在服务器上。我也在每次构建之前清理解决方案。

I should mention that on my bots I have a pre-Integration Script that re-installs all of my CocoaPods on server. I also clean solution before each build.



将OS X升级到最新版本。

您可能无法升级到最低目标操作系统版本的应用程序。这可能是您的UI测试失败的原因。我跟踪我的日志,并找到了Bot的输出文件夹。该应用程序无法启动,因为目标操作系统版本大于服务器本身。


Upgrade OS X to latest version.
You might get away with upgrading to your minimum target OS version of your app. This might be the reason for your UI test failures. I traced my logs and found the output folder for the Bot. The app was not launch-able as the target OS version was greater than the server itself.



疑难解答Xcode Server用户是已断开连接。

我遇到用户断开连接且用户会话上的Xcode服务挂在刷新上的问题。





Troubleshooting Xcode Server user is "disconnected".
I had an issue where the user was "Disconnected" and the Xcode service on the user session was hanging on "Refreshing".


我不得不重新选择Xcode在服务器应用程序中,并创建一个新的Xcode Server用户进行单元测试。问题在此之后立即消失。如果有人知道如何修复现有的用户,请让我知道。

I had to re-select Xcode in the server app and create a new Xcode Server user for unit testing. The problem went away immediately after that. If someone knows how to fix the existing user, please let me know.

这篇关于测试目标`MyAppTests`遇到错误(提前意外退出,操作从未完成引导 - 将不尝试重新启动)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆