1515- [x] Download database.
1616
1717
18+ # <span style =" color :red " >Release 2.0.0:</span >
19+ * ** Replace CocoaAsyncSocket with GCDWebServer, which is higher level server that more convenient.**
20+ * ** Satisfy with Firefox, Safari, Chrome.**
21+ * ** Use bonjourname as the server address, for example: http://y500.local , http://macbook.local:9002 ...**
22+ * ** print link address and bonjour name of the server in the console**
23+
24+
1825# Installation
1926
2027#### Podfile
@@ -32,6 +39,22 @@ use_frameworks!
3239pod ' YYDebugDatabase'
3340```
3441
42+ #### Carthage
43+
44+ - Cartfile
45+
46+ ```
47+ github "y500/iOSDebugDatabase"
48+ ```
49+
50+ - run ` carthage update `
51+
52+ - Add all three ` .frameworks ` to your target "Embedd Frameworks" Build Phase:
53+ - ` iOSDebugDatabase.framework `
54+ - ` FMDB.framework `
55+ - ` GCDWebServers.framework `
56+
57+
3558#### Not build in Release
3659
3760First, add configurations in Podfile.
@@ -52,7 +75,7 @@ $ pod install
5275import at AppDelegate.m:
5376
5477``` objc
55- #import YYDebugDatabaseManager .h
78+ #import DebugDatabaseManager .h
5679```
5780
5881making one line code at ` application:didFinishLaunchingWithOptions ` :
@@ -93,7 +116,7 @@ for example:
93116``` objc
94117 NSString *resourceDirectory = [[NSBundle mainBundle ] resourcePath ];
95118 NSString *databaseDirectory = [NSHomeDirectory () stringByAppendingPathComponent: @"Documents/database"] ;
96- NSString * documentDirectory = [ NSHomeDirectory() stringByAppendingPathComponent:@"Documnets "] ;
119+ NSString * documentDirectory = [ NSHomeDirectory() stringByAppendingPathComponent:@"Documents "] ;
97120 NSString * cacheDirectory = [ NSHomeDirectory() stringByAppendingPathComponent:@"Library/Cache"] ;
98121 [[ DebugDatabaseManager shared] startServerOnPort:9002 directories:@[ resourceDirectory, databaseDirectory, documentDirectory, cacheDirectory]] ;
99122```
@@ -131,6 +154,15 @@ Important:
131154- If you use Simulator you can use address: http://127.0.0.1:9002 .
132155- the port must be same as you write in Appdelegate.m
133156
157+ ###other more:
158+
159+ you can find the address and bojourname address in the console like below:
160+ ```
161+ [INFO] DebugDatabaseManager started on port 9002 and reachable at http://192.168.0.67:9002/
162+ [INFO] DebugDatabaseManager now locally reachable at http://y500.local:9002/
163+ ```
164+
165+
134166### License
135167```
136168 Copyright (C) 2016 y500
0 commit comments