Script to Remove Core Data's SQLite Database File During Development Cycles

Boon aka Hwee-Boon Yar January 15, 2010
Source
During development of applications that uses Core Data on the iPhone, I find myself often wanting to delete the SQLite database file. This is especially common in the earlier stage where the schema isn't finalized yet. Here's a script that helps with that, building on Craig Hockenberry's Open sesame script. See http://gist.github.com/278281. Save the script as clearcoredata, make it executable. To delete the SQLite database file, run: clearcoredata .

Discussion in the ATmosphere

Loading comments...