I am using Xcode 15.2 to archive my iOS app, it takes around 2 hours to complete the archive, during the first 15 minutes Xcode will be using huge CPU usage, then for the rest of the time until the archive completes the Xcode is using minimal CPU and memory usage.
During the last 1:30 h, Xcode will be compiling swift files, I do feel there is something wrong with Xcode or its configuration of the project.
Here is an attached image of build settings:
Notes (I don't know if those effects the build time):
- We are using Swift Lint in the project.
- We are using MVVM RXSwift Clean Architecture.