# Xcode Test step fails with

**URL:** <https://discuss.bitrise.io/t/xcode-test-step-fails-with/7640>\
**Category:** Builds\
**Created:** [January 14, 2019, 10:19am UTC](https://discuss.bitrise.io/t/xcode-test-step-fails-with/7640 "2019-01-14T10:19:42Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [January 14, 2019, 10:19am UTC](https://discuss.bitrise.io/t/xcode-test-step-fails-with/7640/1 "2019-01-14T10:19:42Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

```auto
▸ Test Succeeded
xcode test exit code: -1
xcode test failed, error: signal: abort trap
Last lines of the Xcode's build log:
 15 __64-[SimDevice shutdownAsyncWithCompletionQueue:completionHandler:]_block_invoke (in CoreSimulator)
 16 __67-[SimDevice bootstrapQueueAsync:completionQueue:completionHandler:]_block_invoke (in CoreSimulator)
 17 _dispatch_call_block_and_release (in libdispatch.dylib)
 18 _dispatch_client_callout (in libdispatch.dylib)
 19 _dispatch_queue_serial_drain (in libdispatch.dylib)
 20 _dispatch_queue_invoke (in libdispatch.dylib)
 21 _dispatch_root_queue_drain_deferred_wlh (in libdispatch.dylib)
 22 _dispatch_workloop_worker_thread (in libdispatch.dylib)
 23 _pthread_wqthread (in libsystem_pthread.dylib)
 24 start_wqthread (in libsystem_pthread.dylib)
If you can't find the reason of the error in the log, please check the raw-xcodebuild-output.log
The log file is stored in $BITRISE_DEPLOY_DIR, and its full path
is available in the $BITRISE_XCODE_RAW_TEST_RESULT_TEXT_PATH environment variable.
You can check the full, unfiltered and unformatted Xcode output in the file:
/Users/vagrant/deploy/raw-xcodebuild-output.log
If you have the Deploy to Bitrise.io step (after this step),
that will attach the file to your build as an artifact!

```

## Environment:

**Where did the issue happen?**

Xcode 10.1.x

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

Xcode Test

## 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)_ : YES
- _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)._ : YES
- _Does the issue happen sporadically, or every time?_ : Sporadically, quite random.
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : Around switching to Xcode 10.1 stack.

## 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:** [January 14, 2019, 10:22am UTC](https://discuss.bitrise.io/t/xcode-test-step-fails-with/7640/2 "2019-01-14T10:22:02Z")

</div>

**Solution:** set `Run the test in headless mode? ` to `no` in the `Xcode Test` step’s Debug input section:

 ![perf_test __ios-xcode-8_0__ sample_-build __16590__ f61a223d5fb1de4c_-_Bitrise](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/8/86cac970647ea50e888fe88efcce9c97142f41aa.png)

Or in YAML mode:

```auto
    - xcode-test:
        inputs:
        - headless_mode: 'no'

```

---

<div class="post-metadata">

**Author:** ![yonaskolb](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/yonaskolb/32/1742_2.png) [@yonaskolb](https://discuss.bitrise.io/u/yonaskolb)\
**Post date:** [January 18, 2019, 5:31am UTC](https://discuss.bitrise.io/t/xcode-test-step-fails-with/7640/3 "2019-01-18T05:31:58Z")

</div>

We’re seeing this too

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [January 18, 2019, 11:13am UTC](https://discuss.bitrise.io/t/xcode-test-step-fails-with/7640/4 "2019-01-18T11:13:48Z")

</div>

Did the included solution help @yonaskolb?

---

<div class="post-metadata">

**Author:** ![yonaskolb](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/yonaskolb/32/1742_2.png) [@yonaskolb](https://discuss.bitrise.io/u/yonaskolb)\
**Post date:** [January 18, 2019, 1:58pm UTC](https://discuss.bitrise.io/t/xcode-test-step-fails-with/7640/5 "2019-01-18T13:58:20Z")

</div>

Yes, seems to. Just a shame to lose headless mode

---

<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:** [February 17, 2019, 1:58pm UTC](https://discuss.bitrise.io/t/xcode-test-step-fails-with/7640/6 "2019-02-17T13:58:33Z")

</div>

Closed on February 17, 2019, 1:58pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
