venmo / synx

A command-line tool that reorganizes your Xcode project folder to match your Xcode groups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Synx can irreversibly remove all your files

abdulowork opened this issue · comments

Synx can delete all the files from the project or corrupt xcodeproj file if stopped in the middle of execution.

Steps to recreate:

  1. Create a new project and put a bunch of swift files in different folders within your project.
  2. Launch synx and try to stop it at "Syncing files that are not included in Xcode project.."
  3. Files disappear

If doesn't happen to you the first time, try a couple times. I was able to corrupt my xcodeproj file and delete all of my swift flies a couple times.

I believe this behavior is very dangerous and should be fixed asap. All transactions within synx must be atomic and should create a backup file before performing any work on the files.

P.S. RIP ✝ homework, commit often guys

I believe this behavior is very dangerous and should be fixed asap. All transactions within synx must be atomic and should create a backup file before performing any work on the files.

Nah..
just git reset your working copy and restart synx. no reason to implement transactions or backup mechanisms.
Working without version control systems like git is very dangerous.