TLDR:每个人在iCloud和GitHub上存储Xcode应用程序的经验如何?
我有2台Mac (15“MacBook Pro 2016和M1 Mini),我的Swift代码存储在我的GitHub和iCloud中,因为我希望我的MB上的更改也出现在M1 Mini上。我也没有同时打开两个Mac的Xcode应用程序来简化iCloud上的操作。因为M1 Mini是通过MacBook Pro的TimeMachine备份启动的,直到我不得不重新格式化Mini,因为它认为它是MacBook Pro,所以有些应用程序无法工作。
除了Notability之外,我还可以通过重新下载来修复大多数应用程序的问题,但是,如果我的Mini会要求我通过指纹登录来验证的话,仍然会有这样的情况。因为我大部分的笔记都写在了我的笔记上,我再也不能忍受由于上大学的目的而不能使用Notability了。因此,我重新格式化了我的M1 Mini,并完成了整个环境的设置。
现在的问题/问题,我打开了Xcode,我正在工作的应用程序之一,我的Mini从iCloud驱动器,令人惊讶的代码仍然运行。但是,我在我的非阶段性文件上看到了这6个Firebase头文件,而在我的MacBook Pro上没有未分阶段的文件。有人知道怎么回事吗?我应该忽视它吗?
我试过重设我的本地分支
git fetch --all
git reset --hard origin/samuel/feature1但我得到了以下错误。
error: unable to read sha1 file of Multiverse/Pods/Headers/Private/Firebase/Firebase.h (07ac6eb193d61bc7bf93a47fda7e949fc6d12cd7)
error: unable to read sha1 file of Multiverse/Pods/Headers/Private/FirebaseCoreDiagnosticsInterop/FIRCoreDiagnosticsData.h (ce646ecf1d2e4f0e748e81842f81604064ae3f5c)
error: unable to read sha1 file of Multiverse/Pods/Headers/Private/FirebaseCoreDiagnosticsInterop/FIRCoreDiagnosticsInterop.h (07d83d70f41da4aaa329489cc8528ac5709ee382)
error: unable to read sha1 file of Multiverse/Pods/Headers/Public/Firebase/Firebase.h (07ac6eb193d61bc7bf93a47fda7e949fc6d12cd7)
error: unable to read sha1 file of Multiverse/Pods/Headers/Public/FirebaseCoreDiagnosticsInterop/FIRCoreDiagnosticsData.h (ce646ecf1d2e4f0e748e81842f81604064ae3f5c)
error: unable to read sha1 file of Multiverse/Pods/Headers/Public/FirebaseCoreDiagnosticsInterop/FIRCoreDiagnosticsInterop.h (07d83d70f41da4aaa329489cc8528ac5709ee382)
fatal: Could not reset index file to revision 'origin/samuel/feature1'.发布于 2021-03-08 05:32:47
这个问题是由以下命令解决的,
git config core.symlinks false请参阅更多信息,请单击此链接:error: unable to create symlink, fatal: Could not reset index file to revision 'HEAD'
https://stackoverflow.com/questions/66524421
复制相似问题