Xcode 15 compiling and running even simple code slowly.

Hey all,

I started a class and the first assignment was, as expected, to print “Hello World” on a Swift Playground. The issue I’m coming across is that Xcode 15 runs and compiles, even one line of code, excruciatingly slowly. When I’d messed with Xcode on Monterey and Ventura it wasn’t giving me nearly as many slowness issues as Sonoma does now.

I’m using an M1 Air with 8GB RAM. I know that isn’t much, but it should be sufficient. I’d read before that it wants to simulate iOS 17 on an iPhone 15 Pro Max by default, but I don’t know how to change that if it is in fact what the problem is. Thanks in advance for your help.

The swift compiler, as a recursive descent parser is terribly slow at resolving broken code. It really needs to be replaced with an LALR1 compiler using lex/yacc with the swift syntax more fully described in the grammar instead of their being so much context sensitive choices that require the compiler to unwind and recompile from so many different levels to try and discern what is meant by the content.

Modern day compilers should be complaining about syntax errors much more quickly. Certainly named parameters make it a lot harder to "figure out" the polymorphic resolve of the exact method. But realistically I am having to wait 5min or more for some problems that are only reported as

"The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions"

The SwiftUI chaining of .onChange(), and other things with code in them create the biggest barrier here. Something different needs to happen here that moves the base syntax resolution to happen first and then have polymorphic binding result methods. That may already be what's being done, I don't know, but I just am spending day after day commenting out lines of code trying to find the syntax error and get a real error message. It's keeping me from being productive and pushing me to just stop and give up again on these apps I keep trying to put together but have to rewrite because each time I try again, I have a complete new set of APIs, language, libraries etc. to deal with.

I am running Xcode 15 on a 2017 MacBook with Ventura and it too is ridiculously slow. What happened Apple?

I am running Xcode 15 on a 2017 MacBook with Ventura and it too is ridiculously slow. What happened Apple?

Any updates on this issue? I am running Xcode 15.0.1 on Ventura 13.6.1. Just changing the text output of a simple "hello world" SwiftUI app and re-running it takes 1 min 15 secs for the change to appear in the iPhone 13 Simulator. And forget about the live Preview. It doesn't work at all. Keeps failing with errors.

I'm also eager for a solution to this - it's taking over 10 minutes to run Hello World in a Playground 🤦‍♀️

Any news? This is ridicolous

I still remember that the fastest version was Xcode14.3. At that time, my project only took about 10 minutes to compile. As a result, after the Xcode15 came out, my compilation soared to one hour. I always saw that it did not move for more than 20 minutes after reaching a progress, such as 3347/3394, even though it was a little short of progress, it seemed that it would never arrive. This problem has been torturing me for more than a year, and Apple has not fixed it.

Xcode 15 compiling and running even simple code slowly.
 
 
Q