测试目标`MyAppTests`遇到错误(提前意外退出,操作从未完成引导 - 将不尝试重新启动) [英] Test target `MyAppTests` encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
问题描述
当尝试在设备上运行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.
- 将CocoaPods更新至版本min。 1.1.0在开发机和服务器上
sudo gem update cocoapods
。 - 根据CocoaPods中的终端输出设置 Swift标准库更改为否。
- 将OS X服务器升级到最新版本(见下文)。
- 升级Xcode
- 再次通过服务器应用程序选择Xcode。
- 创建并登录作为测试用户Xcode所需的UI测试。
- 在服务器上打开Xcode并安装缺少的组件(它会在启动时询问)。
- 重新启动服务器。 >
- Update CocoaPods to version min. 1.1.0 on both dev machine and server
sudo gem update cocoapods
. - 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.
- Upgrade OS X Server to latest version (see more below).
- Upgrade Xcode to latest version both on dev machine and server.
- Select Xcode through server app again.
- Create and log in as the test user Xcode required for UI tests. (trouble shooting below)
- Open Xcode on the server and install missing components (it will ask on launch).
- 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屋!