I have some questions to apple team.
Too many swift file can make build time slow?
There is a large file like a kind of UIViewController. it confirms to a lot of protocol. like UICollectionViewDataSource, UICollectionViewDelegate and some one. Which one better? first, Just write it down one file or divide it into separated files to confirm each protocol.
Thanks!
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi
I have joined an iOS development team about 3 month ago.
When I run the code, It takes too long time to build.
Even though in the incremental build time too.
It needs about 2 minutes to run every single time.
I have tried to find why it is too slow and I guess the amount of swift code file is.
There are 4,000 swift code files and the dependency is very complicated.
So... In a short, the number of source files can make build slower? Please save me! Thanks!
Hi
I tried to build my application with Xcode 12.
I have struggled with a bad problem which is very very slow to build or index to my app.
I looked the 'show the report navigator' tab and build messages and I find
Compile swift source files(x86_64) 300.3 seconds
Precompiling bridging header (x86_64)
Compile AAA.swift (x86_64)
Merge swiftmodule (x86_64)
the 'Merge swiftmodule' process is especially slow.
There are any document or tips I can fix it ?
Please let me know how to improve and why it occur.
thanks.