1

I am using Xcode with source control. Is it possible to select an older commit of the actual project (just like in the Revisions tab) and run it without the need of git cloning?

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223

2 Answers2

2

It's relatively straightforward using the command line.

If the commit you want to target is named 0ad5a7a7, then you can create a new branch via this:

git checkout -b old-project-state 0ad5a7a7

After creating that branch, you can change to it via Xcode's "Switch To Branch" menu item and you can then build it.

Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
0

Follow this answer Then additionally you may need to run

pod install

or

bundle exec pod install

based on your project dependency.

SM Abu Taher Asif
  • 2,221
  • 1
  • 12
  • 14