You should ensure Package.resolved is under source control. SPM packages can be cached in the following steps: 1. And you should specify the download folder explicitly. In order to cache the dependencies, they should be located in the project directory, but by default, SPM downloads the dependencies into the system folder: ~/Library/Developer/Xcode/DerivedData. The best way to speed up job on CI is to cache dependencies. So on local machines fetched and built dependencies are stored in the derived data directory, while CI clears build-cache after every run.That said, since on CI it needs to be done whenever the job runs, it slows down the process. However, because you need to do this only once during development, it isn’t a significant problem. Of course, installation dependencies will take a significant amount of time.
This command simultaneously checks dependencies, downloads missing packages, and then starts the usual build of the application.
destination 'platform=iOS Simulator,name=IPhone 11'