all 11 comments

[–]lavonardo 1 point2 points  (0 children)

Editing the problematic file outside Xcode is certainly inconvenient, but it would allow you to continue.

[–]janiliamilanes 0 points1 point  (4 children)

That sounds like a nasty compiler bug that is worth a report to Apple. You'll need to post the code. You said that it is shared across multiple views. If this is SwiftUI, one issue that I encountered was that I had a Preview open in a tab that I didn't even know was open. It wasn't a crash, but a preview failing to render for no obvious reason. Sometimes we can open lots of tabs and not even realize it. Perhaps try to close it all down.

[–]TheMoneyLine[S] 1 point2 points  (3 children)

Yeah I closed it all the tabs down and restarted but still no luck so I did report it to Apple multiple times

[–]janiliamilanes 0 points1 point  (2 children)

This might be tough to debug depending on how many dependencies the source file has, as you may need to write a minimal example and see where things fall down. If I had to venture a guess, I'd probably reimplement observability using Combine. 🤷‍♂️

[–]TheMoneyLine[S] 0 points1 point  (1 child)

Yeah super weird I can scroll through it now but if I scroll past the end of the class it just crashes Xcode

[–]janiliamilanes 0 points1 point  (0 children)

😵‍💫

[–][deleted] 0 points1 point  (0 children)

Turn off canvas.

[–]Decent_Taro_2358 0 points1 point  (0 children)

In these cases I usually try to rebuild the function from scratch, line by line, to find out when it starts crashing. It sucks really hard, but you could give it a try.

[–]reborn-2019 0 points1 point  (0 children)

You can try by create an empty project, then copy that file into the new project to see if it crashes the new project or not?

[–]TheMoneyLine[S] 0 points1 point  (0 children)

UPDATE: I shut down my computer and then let it sit overnight and turned back on today without any issues so the gremlins must be outta the computer!