如何将整个 XCode 项目切换到以前的提交 [英] How to switch entire XCode project to previous commit

查看:30
本文介绍了如何将整个 XCode 项目切换到以前的提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用 Git 和 SourceTree.我想将整个项目切换到之前的提交以跟踪我引入错误的地方.当我这样做时(使用 SourceTree)XCode 不再认为我的项目是一个有效的 iOS 项目.

I am using Git and SourceTree with my project. I want to switch the whole project to a previous commit to trace where I have introduced a bug. When I do so (using SourceTree) XCode no longer thinks my project is a valid iOS project.

方案从:

到:

我不能再建造了.

这里发生了什么?XCode 是否保留了一些额外的状态来阻止我将整个项目切换到以前的版本?

What is going on here? Is XCode keeping some additional state that is preventing me from being able to switch the whole project to a previous version?

推荐答案

没有错误,您只需要重新创建方案.单击您的目标MyRecipeIndex"->管理方案"-删除所有内容->立即自动创建方案".之后您应该可以构建项目.

There is no bug you just need to recreate the schemes. Click on your target "MyRecipeIndex" -> "Manage Schemes" - delete everything -> "Autocreate schemes now". You should be able to build the project after that.

这篇关于如何将整个 XCode 项目切换到以前的提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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