You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/README.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ You look at and build the framework itself via `ios-framework/ObjectBox.xcodepro
49
49
50
50
## Development
51
51
52
-
- Ensure the latest Xcode is installed (Swift 5.3+, command line tools should be included).
52
+
- Ensure a recent Xcode version is installed (see section below, Swift 5.9+).
53
53
- Ensure [homebrew](https://brew.sh/) is installed, e.g. setup.sh uses it.
54
54
- Ensure [rbenv](https://github.com/rbenv/rbenv) and ruby is installed, see section below.
55
55
- Run `./setup.sh` or see [setup.sh](setup.sh) and only run what is needed.
@@ -58,33 +58,37 @@ You look at and build the framework itself via `ios-framework/ObjectBox.xcodepro
58
58
59
59
Open the Xcode project in `ios-framework/ObjectBox.xcodeproj`.
60
60
61
-
From the command line:
61
+
Then some typical commands to use:
62
62
63
63
```shell
64
64
# Enter the framework directory
65
65
cd ios-framework/
66
66
67
-
# Build the generator
68
-
make build_generator
67
+
# Download the ObjectBox database libraries
68
+
make fetch_dependencies
69
+
69
70
# Build the framework
70
71
make build_framework
72
+
# Run unit tests
73
+
make u_tests
71
74
72
-
# Execute all tests
73
-
make test
74
-
# Execute specific tests
75
-
make unit_tests
76
-
make generator_tests
75
+
# Build a debug version of the generator
76
+
make build_generator_debug
77
+
# Run generator tests
78
+
make g_tests_run
77
79
```
78
80
79
-
**To execute a specific test** change the last argument to specify your test. You can also execute a group/class by removing the last one/two parts of the filter.
81
+
**To run a specific unit test** change the last argument to specify your test. You can also run a group/class by removing the last one/two parts of the filter.
80
82
Note: `xcpretty` cleans up the output so you won't see all the compiler calls but it also hides failed tests output. So once you see a failure, run without `xcpretty` to read the error.
0 commit comments