Hello, since the latest update of Xcode (Version 15.3 (15E204a)) and Simulator I have the following error message when trying to run my App: "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions." My App was running with Simulator and on my iPad without any problems with exactly the same code! A similar version is already running on TestFlight with nearly the same code. What can I do to make my App run again?
You are doing a lot in the .onChange
block. To fix the compiler error, I recommend creating a function to calculate the value of P_Sprint
and call the function in the .onChange
block. Breaking up the calculations into smaller chunks will also help you fix the compiler error and make the code easier to understand.
If the code was working in Xcode 15.2 and you want to publish your app without making the code changes, then install Xcode 15.2. Build, archive, and submit your project in Xcode 15.2. Apple doesn't require Xcode 15.3 for App Store submissions.
Use the site Xcode Releases to find Apple's download links for all Xcode versions.
https://xcodereleases.com