zorro2b
zorro2b

Reputation: 2257

How to switch entire XCode project to previous commit

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.

The scheme changes from:

enter image description here

to:

enter image description here

and I can no longer build.

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?

Upvotes: 1

Views: 425

Answers (1)

almas
almas

Reputation: 7187

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.

Upvotes: 1

Related Questions