Post

Replies

Boosts

Views

Activity

Reply to Xcode 13.3 Hangs when run on physical device
Exactly the same problem here. I openned a thread here https://developer.apple.com/forums/thread/704607. And I do think it's a duplicate here. I worked arround by working on simulator and downgrading to Xcode 13.2.1 to archive but I cannot build on real device to access features like camera or push notification (from out backoffice). I narrowed down the problem to a custom struct that a members is of another custom that has another custom structs as a member. Using only build in types compiles ins seconds. Using my custom types jumps to 10 minutes and I removed a lot of my code for this test. The more I look at it the more I think the compiler struggle to order the files for compilation/linking. I am not an expert in swift nor in compilation but if I had clues of what is happening I could spend time to refactor my code to ease the compiler work but it just hangs for hours before succeeding. Hope an apple dev will see those message an take an action to correct it. btw: there is no such compile time for simulator (using an intel mbp) EDIT: if an apple dev passes by I can provide some more information or code
May ’22
Reply to Xcode 13.2 and 13.3 build hang forever
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.
Apr ’22