# Missing test diamonds in Xcode?!

**URL:** <https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543>\
**Category:** Swift Composable Architecture\
**Created:** [January 13, 2023, 2:17pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543 "2023-01-13T14:17:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fogmeister](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fogmeister/32/12570_2.png) [@Fogmeister](https://forums.swift.org/u/Fogmeister)\
**Post date:** [January 13, 2023, 2:17pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/1 "2023-01-13T14:17:07Z")

</div>

We've been building a project using TCA and then IsoWords structure of modularisation.

Last week the project suddenly stopped rendering any of the test diamonds (on the left of each test function) in the test files inside any of the packages that we have.

This has happened to everyone on the team. We've all been using Xcode 14.2 and I can't find any way to fix it.

I presume that there is something that we have done to cause this in the app. But I'm not sure what it might be?

Sorry this is light on information but I wondered if there is anyone that might be able to point me in the right direction to further debug this?

I've tried the usual stuff of deleting derived data, clean build folder, restart Xcode/laptop. I haven't tried re-cloning the project but a colleague has.

I'm not sure what to check now?

Thanks

---

<div class="post-metadata">

**Author:** ![otondin](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/otondin/32/31265_2.png) [@otondin](https://forums.swift.org/u/otondin)\
**Post date:** [January 13, 2023, 2:44pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/2 "2023-01-13T14:44:18Z")

</div>

Hi! Can you please illustrate better the error that you’re getting when trying to run the tests?

---

<div class="post-metadata">

**Author:** ![Malauch](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/malauch/32/19535_2.png) [@Malauch](https://forums.swift.org/u/Malauch)\
**Post date:** [January 13, 2023, 2:51pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/3 "2023-01-13T14:51:21Z")

</div>

Did you check if your test targets are included in active scheme? You can try add new scheme with only test target and check if it helps.

---

<div class="post-metadata">

**Author:** ![Fogmeister](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fogmeister/32/12570_2.png) [@Fogmeister](https://forums.swift.org/u/Fogmeister)\
**Post date:** [January 13, 2023, 3:02pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/4 "2023-01-13T15:02:02Z")

</div>

Hey, it's not an error. It just doesn't show any of the test feedback in the file. Like the diamonds in the left hand gutter with the test status.

Or any test failure messages.

Etc...

However, I've deleted our `.swiftpm` folder and recreated all the schemes from scratch and they're all back now.

It's really odd. Just so inconsistent.

---

<div class="post-metadata">

**Author:** ![otondin](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/otondin/32/31265_2.png) [@otondin](https://forums.swift.org/u/otondin)\
**Post date:** [January 13, 2023, 3:05pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/5 "2023-01-13T15:05:19Z")

</div>

Gotcha!

---

<div class="post-metadata">

**Author:** ![mbrandonw](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mbrandonw/32/349_2.png) [@mbrandonw](https://forums.swift.org/u/mbrandonw)\
**Post date:** [January 13, 2023, 3:20pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/6 "2023-01-13T15:20:45Z")

</div>

Sadly this is an Xcode bug that started in 14.0. It's gotten a little better in 14.1 and 14.2, but it's still there. It also affects non-TCA applications. For example, here's the test suite for the Standups app in our swiftui-navigation library:

 ![Screenshot 2023-01-13 at 7.18.58 AM](https://global.discourse-cdn.com/swift/original/3X/4/4/449c9dfa99e59b827d94e9df62e00547d3378129.png)

We usually have to clean+rebuild or restart Xcode to get the diamonds back.

We filed a Feedback in July 2022. Here's the # in case you want to duplicate it: FB10910099

---

<div class="post-metadata">

**Author:** ![Fogmeister](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fogmeister/32/12570_2.png) [@Fogmeister](https://forums.swift.org/u/Fogmeister)\
**Post date:** [January 13, 2023, 4:00pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/7 "2023-01-13T16:00:20Z")

</div>

Great thanks for the info.

I've noticed that other people online seem to be reporting it too.

Xcode does seem to be particularly inconsistent around managing schemes in project. 😬

Incidentally, I completed nuked our schemes and recreated them and it seems to have solved it for now. So will remember that and keep it in mind for if/when it happens again.

Thanks

---

<div class="post-metadata">

**Author:** ![lukeredpath](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/lukeredpath/32/12588_2.png) [@lukeredpath](https://forums.swift.org/u/lukeredpath)\
**Post date:** [February 14, 2023, 7:56am UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/8 "2023-02-14T07:56:03Z")

</div>

Yes, this is an Xcode bug and it’s incredibly annoying. Even more so is test errors not showing inline. It’s a massive productivity drain. Amazed it hasn’t been fixed by then, Xcode releases seem to be few and far between these days.

---

<div class="post-metadata">

**Author:** ![gtranchedone](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/gtranchedone/32/22595_2.png) [@gtranchedone](https://forums.swift.org/u/gtranchedone)\
**Post date:** [March 22, 2023, 11:24pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/9 "2023-03-22T23:24:04Z")

</div>

This happens to me if I add the test targets of my packages in Test Plain for the app target. ☹

---

<div class="post-metadata">

**Author:** ![DanKorkelia](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/dankorkelia/32/3454_2.png) [@DanKorkelia](https://forums.swift.org/u/DanKorkelia)\
**Post date:** [March 24, 2023, 11:54am UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/10 "2023-03-24T11:54:11Z")

</div>

Just wondering if there is any other workarounds to this that anyone have found apart from what Brandon mentioned.

---

<div class="post-metadata">

**Author:** ![lukeredpath](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/lukeredpath/32/12588_2.png) [@lukeredpath](https://forums.swift.org/u/lukeredpath)\
**Post date:** [October 11, 2023, 11:12am UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/11 "2023-10-11T11:12:47Z")

</div>

Looks like this bug is back in Xcode 15, at least for tests in a local SPM package test target. Still not fixed in 15.1.

---

<div class="post-metadata">

**Author:** ![ferologics](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ferologics/32/13442_2.png) [@ferologics](https://forums.swift.org/u/ferologics)\
**Post date:** [October 17, 2023, 2:48pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/12 "2023-10-17T14:48:23Z")

</div>

can confirm ...

---

<div class="post-metadata">

**Author:** ![sarah-j-smith](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sarah-j-smith/32/32214_2.png) [@sarah-j-smith](https://forums.swift.org/u/sarah-j-smith)\
**Post date:** [October 19, 2023, 4:35am UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/13 "2023-10-19T04:35:55Z")

</div>

I faced missing test diamonds for a file that had previously worked. I tried the deleting and recreating schemes, and rebooting etc etc - no luck.

In my case the fix was the file had _been taken out of our test target_. It looks like the cause was due to fixing a merge conflict inside the pbx.proj file. Ticking the checkbox to add it back fixed the problem.

---

<div class="post-metadata">

**Author:** ![danieleforlani](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/danieleforlani/32/32639_2.png) [@danieleforlani](https://forums.swift.org/u/danieleforlani)\
**Post date:** [November 17, 2023, 12:31pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/14 "2023-11-17T12:31:30Z")

</div>

I have a mac only app and no chance to see the diamonds or any test in the test tab...

---

<div class="post-metadata">

**Author:** ![pkaminski](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/pkaminski/32/35712_2.png) [@pkaminski](https://forums.swift.org/u/pkaminski)\
**Post date:** [June 5, 2024, 11:06pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/15 "2024-06-05T23:06:11Z")

</div>

Is there a ticket or anything we can bump?

> We filed a Feedback in July 2022. Here's the # in case you want to duplicate it: FB10910099

I am not sure how to find this issue in particular, but would love to help increase Apple's urgency to fix it.

This issue dates all the way back to 2016, it looks like [Xcode fails to discover tests, mis… | Apple Developer Forums](https://forums.developer.apple.com/forums/thread/42062)

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [June 6, 2024, 12:04am UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/16 "2024-06-06T00:04:25Z")

</div>

With `swift-testing` coming with Xcode 16 next week (shipping in September), it's unlikely this issue will ever be fixed. Instead, we get to deal with a whole new set of bugs in `swift-testing`'s Xcode integration!

---

<div class="post-metadata">

**Author:** ![pkaminski](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/pkaminski/32/35712_2.png) [@pkaminski](https://forums.swift.org/u/pkaminski)\
**Post date:** [October 23, 2024, 4:11pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/17 "2024-10-23T16:11:58Z")

</div>

Does this work better with swift-testing? Seems like diamonds are still missing in Xcode 16.

I honestly can't believe this issue has not been addressed yet 🙃

![Screenshot 2024-10-23 at 9.10.43 AM](https://global.discourse-cdn.com/swift/original/3X/3/4/348107560b55c90f038e6ff53c83ebb506693d6d.png)

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [October 23, 2024, 5:07pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/18 "2024-10-23T17:07:48Z")

</div>

Nope. Apparently the bug transcends testing frameworks!

---

<div class="post-metadata">

**Author:** ![pkaminski](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/pkaminski/32/35712_2.png) [@pkaminski](https://forums.swift.org/u/pkaminski)\
**Post date:** [October 23, 2024, 5:51pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/19 "2024-10-23T17:51:49Z")

</div>

Just submitted feedback (FB15570644) in Xcode (Help -\> Provide feedback) in case others want to join the cause to try to get enough attention for Apple to address this.

---

<div class="post-metadata">

**Author:** ![olcayertas](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/olcayertas/32/17621_2.png) [@olcayertas](https://forums.swift.org/u/olcayertas)\
**Post date:** [July 18, 2025, 3:31pm UTC](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543/20 "2025-07-18T15:31:40Z")

</div>

Problem still exists with Xcode 16.4 with SPM package.  
I am using test section from navigation panel to run individual tests.

[Next page](https://forums.swift.org/t/missing-test-diamonds-in-xcode/62543.md?page=2)
