-
-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在你的最新的 commit 后使用 Swift Package Manger 的方式引入报错 #162
Comments
Same problem
|
Ok, understood the problem. Because there was force-push to the repository that overwrite git history - we have fingerprint mismatch.
or only files related to the repo, but clean all is easier |
亲测上面方案好用,但有点好奇的是我在 Xcode 里,使用 Package > Reset Package Cache 这个为什么不起作用,难道 Xcode 本身就没有办法解决这个问题? |
Safety measure. If Xcode will deal with it automatically - you will never know that someone played with past repo commits. This situation should never happen to open source repo. I don't know what was maintainer thinking when making this update. In general imagine situation that some criminal have taken control over some popular open source project, and then embed some malicious code or script somewhere inside commit that was 3 years ago and then made force push. What will be the chance that user will search and investigate what exactly were modified and if it safe? General user will make this |
I agree, this should not be done on the main or release branch. If you really need to rebase and/or force push, better open a new branch and merge the changes into the main branch and add a new tag. Took me ages to figure this out! :) |
检查清单
问题描述
在你的最新的 commit 之后,97f66a5#diff-62bd2b94df67e500d0bcc4f14bba20a84ffe68db558b43094b5f464dbafabe3e 使用 Swift package Manger 的方式引入报错。
展开讲讲
具体的报错是这个。
重现步骤
(估计跟最新系统没关系,应该就是你的最新的 commit 后出的问题)
Xcode 16.0 Swift 5.5 ,Mac 系统 Sequoia
The text was updated successfully, but these errors were encountered: