Skip to content

Commit 4b91f24

Browse files
author
Chris Wilson
committed
update read
Only create project file if app is in debug mode
1 parent ec51ca4 commit 4b91f24

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ Something like this:
6767
6868
`````
6969
#if !(TARGET_OS_EMBEDDED) // This will work for Mac or Simulator but excludes physical iOS devices
70+
#ifdef DEBUG
7071
// @(1) is NSSQLiteStoreType
7172
[self createCoreDataDebugProjectWithType:@(1) storeUrl:[storeURL absoluteString] modelFilePath:[modelUrl absoluteString]];
7273
#endif
74+
#endif
7375
`````
7476
7577
Now you can just open the /tmp/YourAppName.cdp file and it will open CoreDataUtility with your app's data loaded.

0 commit comments

Comments
 (0)