Skip to content
Aasim's Web Corner
Aasim's Web Corner

Ink is better than the best memory.

  • Odysseys & Artistry
    • Saunterer Soul
    • My Poetry
    • My Sketch Work
  • Project Management
    • Agile & Frameworks
    • PMP Certification
  • Digital Diary
    • History
    • Islam
    • Life Around Us
    • My Bookshelf
  • My Tutorials
    • Amazon Kindle
    • Android
    • Aspect Oriented Programming
    • BlackBerry
    • Code Repositories
    • iOS
    • Java
    • JavaScript
    • Linux
    • Random Tips
Connect with me
Aasim's Web Corner

Ink is better than the best memory.

Local History Xcode - AasimNaseem.com

Local history/revision of files in Xcode

Aasim Naseem, February 24, 2013 | Read Count: 12,499April 9, 2025
Category: My Tutorials > iOS

Hello friends ..extra-xcode

hope things are going good on your desk ..

Last night I was going through my tweets, and there I found something really interesting; I crawled it for few minutes and after reading some blog posts I came to know about a very useful but hidden feature that I always miss in Xcode .i.e. local history/revision of your code files; (What!! what did you say!!! Say again … )

 

Surprised !! Ya its natural; I was too when I first tested this feature; Oliver Drobnik first highlighted this feature in his blog post here after discussing with some Apple engineer. Infact Xcode autosaves the versions of all of your code files you created inside your project; (oh waoo, why I did never know this before? That sounds great) You can view those revisions with respect to their time, compare them and can revert any file to your desire revision; You can even delete a revision to cleanup version history; (man, enough; I can’t wait more, Tell me where is that option? File menu, edit, project? in which menu? )

Well, unlike eclipse (a well know editor to develop java based applications) Xcode doesn’t provide any viewer to view those revisions; (What!! are you in your senses!! No viewer? Then why the Xcode saves those revisions if it doesn’t allow us to view them? No man you are kidding han!!) No, I’m not kidding, its true; Xcode doesn’t provide any viewer to view those revisions; The questions why Xcode saves them, is still unanswered to me; But hold your breath, there is always a back door to step into home; (: We shall use TextEdit application to view and restore those revisions; (TextEdit application!!! Man you know what, too many surprises in a row are injurious to health; Take care of me bro please) 

To view the revision of any file, open it in TextEdit and chose File -> Revert Document option; You will see the current version and all previous revisions side by side as shown in below screenshot;

click to enlarge
click to enlarge

I think the layout is pretty self descriptive; Select the revision from timeline at right and Restore it; To delete any revision just click the file name in title bar and select Delete Revision option; (Yess, its showing me complete history, from the day when I created this file; Thumbs up bro, +1)

Usage: Sometimes when you are working on a module or fixing a bug, soon you feel that you have messed up all the code; Even the previously implemented thing are not working now; You try to undo your changes but you aren’t sure  what was the stable state of your code; Don’t worry; Just take a sip of coke and revert your code; Simple enough; You can do it by reverting your code to, let say, the code of 2 hours before, or the code state at day end of yesterday;

Smiling han!!! You should; (:
Happy development;

Next Step: File a feature request at Apple development forum to add viewer to view, compare and restore the revisions; (Ya they should add such viewer inside the Xcode; I’m gone add my ticket there)

Flag Counter

Author Profile

Aasim Naseem
Hey, Thanks for your interest. I’m a PMP, AWS Solutions Architect, and Scrum Master certified professional with 17+ years of hands-on experience leading projects, building teams, and helping organizations deliver software solutions better, faster, and smarter.

Outside of work, I’ve got a deep curiosity for history — especially ancient civilizations like Egypt. I also enjoy reflecting on the everyday moments that shape how we live and work. This blog is my space to share insights, lessons, and thoughts from both my professional journey and personal interests.

Thanks for reading — and I hope you will find something here that matches your interest.
Latest entries
  • Economic impact of Eid ul Adha - AasimNaseem.comIslamJune 6, 2025 | Read Count: 282Economic impact of Eid-ul-Adha
  • Best PMP Exam Study Resources - AasimNaseem.comPMP CertificationMay 23, 2025 | Read Count: 493Best PMP Study Resources for 2025 (Books, Courses, Tools & More)
  • agile vs scrum - AasimNaseem.comAgile & FrameworksMay 7, 2025 | Read Count: 463Agile vs Scrum: Finally Understanding the Difference
  • When Agile shouldn’t Use - AasimNaseem.comAgile & FrameworksApril 25, 2025 | Read Count: 493When Not To Use Agile: 5 Signs You Need a Different Approach
iOS Eclipsefile revision in Xcodelocal history in Xcodelocal history objective cxcode

Post navigation

Previous post
Next post

Related Posts

iOS iOS Code Tips - AasimNaseem.com

iOS Code Chunks – Part 2

May 23, 2011 | Read Count: 14,496April 27, 2025

Category: My Tutorials > iOS Hello iFellows; Hope all are enjoying your life. Today, there are  some tips for new iDevelopers. These code chunks will help you out to do some really simple and many-time-usable things. Bring coke and have some light track in iTunes. So here we go; Author…

Read More
iOS Background processing in iOS - AasimNaseem.com

Background processing in iOS

June 7, 2012 | Read Count: 13,410April 27, 2025

Category: My Tutorials > iOSHello, everyone. Hope things are going well around you. I’m working on an iOS application and facing an issue regarding network calls. I need your kind suggestions in incase I’m not doing the thing in the right way. Scenario: I want to download one or more…

Read More
iOS iOS Code Tips - AasimNaseem.com

How to show URL in UIWebView in iPhone/iPad/iPod

January 26, 2011 | Read Count: 14,412May 5, 2025

Category: My Tutorials > iOSHi everyone! Below is a small code to display contents over UIWebView. Assuming that you have declared a UIWebView in your header file; in my case it is detailWebView. That’s it; keeping user interaction and multi-touch options checked in the xib file will allow the user…

Read More

Comments (14)

  1. santoshc says:
    June 25, 2015 at 9:20 am

    great thanks…

    Reply
  2. emre says:
    August 17, 2015 at 5:59 pm

    thank you man! saved the rest of my day!

    Reply
    1. Ans says:
      August 20, 2015 at 3:11 am

      Your comment made my day as well ((: good luck ..

      Reply
  3. Liron says:
    September 1, 2015 at 2:14 pm

    Brilliant! Btw, in OSX Yosemite it’s in: File->Revert to->Browse all versions.

    Reply
  4. Gorcyn says:
    September 17, 2015 at 1:21 am

    3hours on a iOS XIB saved

    Reply
  5. Pingback: Xcode Local History | Can't see nothing but the source code
  6. Rupal says:
    July 5, 2016 at 3:13 am

    literally a LIFESAVER, git reset –hard had almost lost me hours of work and nothing had been helping, until I tried this. Thanks so much.

    Reply
    1. Ans says:
      July 19, 2016 at 6:11 pm

      Thanks for your kind comments. I’m glad it helped you.

      Reply
    2. Ans says:
      July 19, 2016 at 6:11 pm

      Thanks for your kind comments. I’m glad it helped you.

      Reply
  7. kalyan says:
    October 16, 2017 at 10:51 am

    Give me path

    Reply
  8. frankie90210 says:
    January 2, 2018 at 12:34 am

    Man, you live saver!!

    Reply
  9. cdcd says:
    February 23, 2018 at 6:59 am

    saved my life

    Reply
  10. PardaliS says:
    November 7, 2020 at 1:10 pm

    Dude, you saved my life !!!!!!! I lost some important code in XCode, but now it’s restored ! thank you so much !

    Reply
  11. anon123123 says:
    January 26, 2021 at 1:30 am

    You’re a life saver

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Economic impact of Eid-ul-Adha
    Economic impact of Eid-ul-Adha
    June 6, 2025 | Read Count: 282
  • Best PMP Study Resources for 2025 (Books, Courses, Tools & More)
    Best PMP Study Resources for 2025 (Books, Courses, Tools & More)
    May 23, 2025 | Read Count: 493
  • Agile vs Scrum: Finally Understanding the Difference
    Agile vs Scrum: Finally Understanding the Difference
    May 7, 2025 | Read Count: 463
  • When Not To Use Agile: 5 Signs You Need a Different Approach
    When Not To Use Agile: 5 Signs You Need a Different Approach
    April 25, 2025 | Read Count: 493
  • Quran on Peace and Kindness
    Quran on Peace and Kindness
    April 20, 2025 | Read Count: 452

Posts from Past

  • June 2025
  • May 2025
  • April 2025
  • January 2025
  • November 2024
  • April 2024
  • October 2022
  • August 2021
  • September 2020
  • May 2020
  • April 2019
  • January 2019
  • September 2018
  • July 2015
  • June 2015
  • November 2014
  • September 2014
  • April 2014
  • June 2013
  • May 2013
  • February 2013
  • January 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • March 2012
  • February 2012
  • January 2012
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009

Categories List

  • Agile & Frameworks
  • Amazon Kindle
  • Android
  • Aspect Oriented Programming
  • BlackBerry
  • Blog
  • Code Repositories
  • History
  • iOS
  • Islam
  • Java
  • JavaScript
  • Life Around Us
  • Linux
  • My Bookshelf
  • My Poetry
  • My Sketch Work
  • PMP Certification
  • Random Tips
  • Saunterer Soul

Recent Posts

  • Economic impact of Eid-ul-Adha
  • Best PMP Study Resources for 2025 (Books, Courses, Tools & More)
  • Agile vs Scrum: Finally Understanding the Difference
  • When Not To Use Agile: 5 Signs You Need a Different Approach
  • Quran on Peace and Kindness

Recent Comments

  1. Aasim Naseem on When Not To Use Agile: 5 Signs You Need a Different Approach
  2. Aasim Naseem on When Not To Use Agile: 5 Signs You Need a Different Approach
  3. Masjid Wazir Khan, Lahore Pakistan - Aasim's Web Corner on Everlasting Art of Badshahi Masjid Lahore Pakistan
  4. Rishi Kumar on When Not To Use Agile: 5 Signs You Need a Different Approach
  5. Best PMP Study Resources for 2025 (Books, Courses, Tools & More) - Aasim's Web Corner on PMP Exam Eligibility 2025: 3 Things You Need to Know
©2025 Aasim's Web Corner | WordPress Theme by SuperbThemes