ios - Can I recover source code from app on test iPhone --Swift/Objective C -
i have spent last 4 days coding 20 hours day make first self guided project ever ios. had working prototype , decided tackle layout landscape mode. long story short, in fiddling made mistakes ruined portrait mode , (being complete novice in xcode , programming) accidentally clicked discard changes thinking reset me last save. ended wiping whole file , dumping of old contents trash.
i find half project in trash hoping recover code test iphone has older version of program saved on , start again there (with backups time).
my iphone physical version (not simulator)

unfortunately out of luck here. commit changes , then, if don't want them, can revert (and forward) wish. if had commited (or stashed/staged) ok.
but...
there small possibility finder can though. read this answer , see if helps.
basically, quit xcode, open file working in using textedit, go file > revert > browse versions , see if can restore 1 used. each file , reopen xcode , keep fingers crossed , pray code gods!
Comments
Post a Comment