Skip to content

Instantly share code, notes, and snippets.

View neror's full-sized avatar

Nathan Eror neror

View GitHub Profile
#import <UIKit/UIKit.h>
#import "GTMStackTrace.h"
#ifdef DEBUG
extern BOOL NSDebugEnabled;
extern BOOL NSZombieEnabled;
extern BOOL NSDeallocateZombies;
extern BOOL NSHangOnUncaughtException;
static void exceptionHandler(NSException *exception) {
FTLOG(@"%@", GTMStackTraceFromException(exception));
SQLITE_DB_FILE=AppData.sqlite
SIMULATOR_HOME=$(HOME)/Library/Application\ Support/iPhone\ Simulator
dbshell:
find $(SIMULATOR_HOME) -name "$(SQLITE_DB_FILE)" -exec sqlite3 {} ';'
killdb:
find $(SIMULATOR_HOME) -name "$(SQLITE_DB_FILE)" -exec rm {} ';'
dbschema:
diff --git a/iphone/Nukefile b/iphone/Nukefile
index 30a6ebc..dda717d 100644
--- a/iphone/Nukefile
+++ b/iphone/Nukefile
@@ -1,23 +1,23 @@
-(set platform "iPhoneOS")
+(set platform "iPhoneSimulator")
;; source files
(set @c_files (filelistWithRoot "^objc/.*\.c$" ".."))