Critical Issues and Performance Degradation After Upgrading to Xcode 16

We are having massive problems and seriously random bugs when building our app after upgrading to Sequoia and Xcode16.

For example: suddenly .sheets reload when you swipe the app to the background/foreground and the performance is really bad with massive input lag on buttons and actions. All of this worked fine when built in Xcode 15.4.

But by far the worst is that we can't even archive the app anymore. We just get a "Command SwiftCompile failed with a nonzero exit code." when the builder is trying to compile the main project. No other message, no information at all. After many hours of debugging and narrowing it down to a single view with another .sheet(item:) we can "fix" it by changing the item in the sheet to another struct somehow. Ok so we can archive now, but the app is still unusable because of the performance issues.

How are we going about this? How are we supposed to build our app now? We can't even run Xcode 15.4 anymore because we have Sequoia. Is this the Apple developer experience with random bugs that is randomly fixed every Xcode update?

Answered by DTS Engineer in 808030022

Going forward, please continue to test your software in pre-release versions of system software made available to you through your developer.apple.com account. That way you can test your software and file bugs about any problems before those system software releases are made available to the general public. Please see https://developer.apple.com/download/. Don't get caught out with bugs after a system software release ~ always test in the betas.

I finally figured out the cause for the problem with bad responsiveness:

We have an .onTapGesture(count: 4) for debugging purposes, and that is what is causing an delay/lag/freeze for regular taps. I guess .onTapGesture(count:) has regressed in xcode 16 and somehow now causes lag for regular inputs when wrapped in a ontapgesture? It worked perfectly in Xcode 15.4.

We also have the same problem with drag gestures in a scrollview that is discussed here: https://forums.developer.apple.com/forums/thread/760035

So maybe all custom gestures are breaking now when building with xcode 16?

Going forward, please continue to test your software in pre-release versions of system software made available to you through your developer.apple.com account. That way you can test your software and file bugs about any problems before those system software releases are made available to the general public. Please see https://developer.apple.com/download/. Don't get caught out with bugs after a system software release ~ always test in the betas.

Critical Issues and Performance Degradation After Upgrading to Xcode 16
 
 
Q