Xcode 13.2 and 13.3 build hang forever

Hello,

I recently had my phone updated to iOS 15.4 and so I need to update Xcode to 13.3.

I ran into a problem where my code does build on x86_64 simulator but the same code when archiving or building to "any iOS device" hangs indefenitively.

I tried with Xcode 13.2 and 13.3 the only way I found to be able to build something and archive is building with Xcode 13.1. I do not know if there are compiler update or new option but I am stuck and lost a day looking for an answer

Thanks

Answered by EvilCartman in 713601022

@oronbz, yes! 😃

I've just compilied it on 13.4 RC (May 12, 2022 Build 13F17a) and the problem completely gone.

Happens for me as well since Xcode 13.3

Do you happen to have an anti-virus on your mac? Falcon (crowdstrike), bit-defender?

I do have BitDefender, it's our corporate Anti virus. I'll try to disable it later.

I have something to add to my post as new stuff happened today ^^.

I spend the day looking for what can be the cause of the problem. I do thinks that the compiler algorithm has changed and is less performant at dealing with circular references.

My method : I started a new project and moved all of my components one by one. Doing clean build folder and recompiling at each feature I added. At some point my build time jumped from 5 sec to 150sec with the addition of one file that uses some other structs I added.

When removing all functions, members that uses my custom time, keeping only Strings, Ints and Arrays. My build time came back to 5sec. Adding a single reference to a custom type that I know is dependent of other tipes (its a Backoffice Model) sends the build time to the 100+ sec.

Is It possible to get to the 13.2 build algorithm ? With that one it takes me only 30 sec to build the entire project.

So sad, I have the same problem. Tried all day yesterday and didn't solve the problem. One workaround is to use xcode 13.2.1 .

I am updating the thread. If anyone has experienced this problem. I am still unable to build on 15.4 devices in a reasonable time and spend hours to optimize code for build time without success. No news from the feedback assistant and did not see any new build/release of Xcode.

Did anyone check if Xcode 13.4 RC solves this?

Accepted Answer

@oronbz, yes! 😃

I've just compilied it on 13.4 RC (May 12, 2022 Build 13F17a) and the problem completely gone.

Xcode 13.2 and 13.3 build hang forever
 
 
Q