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

**URL:** <https://discuss.bitrise.io/t/test-target-encountered-an-error-early-unexpected-exit-operation-never-finished-bootstrapping-no-restart-will-be-attempted/3445>\
**Category:** Builds\
**Tags:** fastlane\
**Created:** [December 6, 2017, 1:58pm UTC](https://discuss.bitrise.io/t/test-target-encountered-an-error-early-unexpected-exit-operation-never-finished-bootstrapping-no-restart-will-be-attempted/3445 "2017-12-06T13:58:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![willmunn](https://avatars.discourse-cdn.com/v4/letter/w/4bbf92/32.png) [@willmunn](https://discuss.bitrise.io/u/willmunn)\
**Post date:** [December 6, 2017, 1:58pm UTC](https://discuss.bitrise.io/t/test-target-encountered-an-error-early-unexpected-exit-operation-never-finished-bootstrapping-no-restart-will-be-attempted/3445/1 "2017-12-06T13:58:35Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

Cannot bootstrap app for testing

## Environment:

OSX Xcode 9

If on [Bitrise.io](http://Bitrise.io): which stack? If not on [Bitrise.io](http://Bitrise.io): on what operating system? (Plus any other information you can share)

**Which build Step causes the issue and which version of the step?**

E.g.: Git Clone v3.6.0

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : The 3rd rebuild worked
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : NO
- _Does the issue happen sporadically, or every time?_ : Sporadically
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : today 6/12/2017

### Local reproduction

I’ve tried your suggested steps, but it passes on my mac.

### Local reproduction: Linux / Android (docker based) stack builds

I’ve tried running it on a fresh clone with the bitrise cli and it passes everytime. Is their a way to debug the build folder? via ssh perhaps?

## Build log

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [December 6, 2017, 2:04pm UTC](https://discuss.bitrise.io/t/test-target-encountered-an-error-early-unexpected-exit-operation-never-finished-bootstrapping-no-restart-will-be-attempted/3445/2 "2017-12-06T14:04:45Z")

</div>

Hi @willmunn,

It seems you use `fastlane` to run your iOS tests.

Can you please try to run the tests with our Xcode Test step instead? Fastlane’s `scan` lacks a couple of issue detection features which our Xcode Test step has. E.g. our step can automatically do a retry on the test if it encounters an issue like yours, in case it’s most likely related to the iOS Simulator being not initialized in time. In that case a simple retry helps.

Anyway, can you please try it with our Xcode Test step and let us know how it goes?
