Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 12.5: SPM Dependency Cache Location

Swift Package Manager got a new feature in Xcode 12.5:

Swift Package Manager caches package dependencies on a per-user basis, which reduces the amount of network traffic and increases performance of dependency resolution for subsequent uses of the same package. If needed, you can disable cache use in xcodebuild by using the new -disablePackageRepositoryCache flag. (72204929)

I would like to know where this is cached. Maybe we can use this to easily cache those dependencies in continuous environments.

I want to know what is the difference of this change to the behavior before since before there was already a cache folder in DerivedData. So what is the new thing here?

like image 1000
blackjacx Avatar asked Feb 10 '21 19:02

blackjacx


People also ask

Where are swift packages located?

Starting with Xcode 11, Swift packages can now be directly added and imported into an app project using Xcode's new Swift Packages option, which is located within the File menu.

What is SPM in Xcode?

Swift Package Manager (SPM) a tool that you use to manage dependencies in your iOS app projects. A dependency is a 1st- or 3rd-party library, package or framework. For example, you can add Alamofire to your iOS project with SPM.


1 Answers

Xcode 12.5 release notes appear to be referring to ~/Library/Caches/org.swift.swiftpm/.

like image 152
Joshua C. Lerner Avatar answered Oct 16 '22 08:10

Joshua C. Lerner