Swift package manager updates on every checkout/stash

huangapple go评论63阅读模式
英文:

Swift package manager updates on every checkout/stash

问题

我在项目中导入了几个 SPM(Swift Package Manager)包。每次我执行 checkout 或 stash 操作时,Xcode 都会启动“解析包图”,这个过程非常耗时让人感到烦恼。甚至在 GIT 操作之间没有对 SPM 进行任何更改时,也会发生这种情况。

有时在执行 GIT 操作之前关闭 Xcode 会有所帮助。但仍然很烦人。

有没有办法阻止 Xcode 在每次 checkout 时触发“解析包图”?

英文:

I have several SPM packages imported in my project. Every time I checkout or stash - Xcode starts "Resolving Package Graph" which lasts annoyingly long. It happens even when SPM had no changes applied between GIT operations.

Closing Xcode before performing a GIT operation helps sometimes. But having to close Xcode is still annoying.

Is there a way to prevent Xcode from triggering "Resolving Package Graph" on every checkout?

答案1

得分: -1

需要在 Git 中跟踪 Package.resolved 以解决该问题。只要 spm 包版本在您的 git 检出之间保持一致 - Xcode 将不会触发 "解决包图" 过程。

英文:

Need to track Package.resolved in Git to resolve the issue. As long as spm package versions are the same between your git checkouts - Xcode will not trigger "Resolving Package Graph" process

huangapple
  • 本文由 发表于 2023年2月9日 00:56:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/75389152.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定