Xcode 12.5:SPM依赖项缓存位置 [英] Xcode 12.5: SPM Dependency Cache Location

查看:106
本文介绍了Xcode 12.5:SPM依赖项缓存位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Swift软件包管理器有了新的功能在Xcode 12.5中:

Swift Package Manager got a new feature in Xcode 12.5:

Swift软件包管理器基于每个用户缓存软件包依赖性,这减少了网络流量,并提高了对于后续使用相同软件包的依赖性解析的性能.如果需要,可以通过使用新的-disablePackageRepositoryCache标志来禁用xcodebuild中的缓存使用.(72204929)

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.

我想知道此更改对行为的影响是什么,因为在DerivedData中已经没有缓存文件夹之前.那么,这里的是什么?

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?

推荐答案

Xcode 12.5发行说明似乎是指〜/Library/Caches/org.swift.swiftpm/.

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

这篇关于Xcode 12.5:SPM依赖项缓存位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆