英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论