I just spent a couple hours analyzing this with Claude Agent and found another solution. One of the Swift files contains a function getStaticData(table) that contains a switch statement based on the table name and returns an array of data for the requested table. I use this for static data like a list of the names of countries for the registration page. The function is about 5000 lines long and by looking at the build data, Claude figured out that was taking 8 or 9 minutes to optimize. We added @_optimize(none) to the function header and now the total build time is comparable to other projects of this size. Hopefully this fix will stick.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: