Xcode crashes when deleting a target

I have a test target in my app MacPacker (download via github.com/sarensw/MacPacker as this is open source). I want to remove the test target in Xcode. However, Xcode crashes when I try to delete it.

I have submitted an issue in the Feedback app (FB20976404). I'm posting here to see if anyone else has the same issue and has a workaround. Or, maybe there is an alternative way to get rid of a target?

Steps to reproduce:

  • Open project file
  • Select test target in TARGETS on the left side of the project file editor
  • Click the “-“ button to remove that target

Found in: Xcode 26.1 (and also before in Xcode 26.0)

Thank you for your post and providing the crash files in Xcode. I recommend reaching out to the team using Feedback Assistant to follow up on this issue. Have you had the opportunity to test the latest version of Xcode, including the beta versions?

You can see the status of your feedback in Feedback Assistant. There, you can track if the report is still being investigated, has a potential identifiable fix, or has been resolved in another way. The status appears beside the label "Resolution." We're unable to share any updates on specific reports on the forums.

For more details on when you'll see updates to your report, please see What to expect after submission.

Albert Pascual
  Worldwide Developer Relations.

Hi Albert, thanks for the quick reply. The issue is still in "Open" in the Feedback app. But it is only one day old, so that is expected. Just wanted to reach out here if anyone has had a similar issue and found a workaround. I have the latest official XCode rn (Version 26.1 (17B55)). I might install the xcode beta and see if it is solved then.

Thanks for your reply. Please do install the beta and let us know. Your bug looks complete and hopefully the team will be able to provide you a workaround and solution shortly.

Albert Pascual
  Worldwide Developer Relations.

Xcode crashes when deleting a target
 
 
Q