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: getting-started.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,9 +69,9 @@ The generator requires write permissions in your project directory to generate t
69
69
#### To run the generator from Xcode
70
70
71
71
1. Right-click your project in the Project navigator and click **ObjectBoxGeneratorCommand**,
72
-
2. Select the target that contains your ObjectBox entity classes. The generator plugin sends anonymous usage statistics to the ObjectBox team. If you wish to opt-out, collapse the **Arguments** section below the list of targets and add the `--no-statistics` argument there.
72
+
2. Select the target that contains your ObjectBox entity classes.
73
73
3. When asked, allow the command to change files.
74
-
4. When asked, allow the command to open network connections to send anonymous usage statistics to the ObjectBox team. You need to provide the permission even if you had opt-out of the usage statistics.
74
+
4. When asked, allow the command to open network connections.
75
75
5. Once the command has finished, add the generated source file (`generated/EntityInfo-<target-name>.generated.swift`) to your project.
76
76
77
77
#### To run the generator from the command line
@@ -82,18 +82,18 @@ Use this command:
82
82
swift package plugin --allow-writing-to-package-directory --allow-network-connections all objectbox-generator --target <target-name>
83
83
```
84
84
85
-
The generator plugin sends anonymous usage statistics to the ObjectBox team. If you wish to opt-out, pass the `--no-statistics` flag to the generator,
86
-
87
-
```shell
88
-
swift package plugin --allow-writing-to-package-directory --allow-network-connections all objectbox-generator --target <target-name> --no-statistics
89
-
```
90
-
91
85
The available targets can be viewed in the `Package.swift` file or with the following command,
92
86
93
87
```shell
94
88
swift package describe
95
89
```
96
90
91
+
#### Generator statistics
92
+
93
+
The generator sends anonymous usage statistics to help the ObjectBox team improve ObjectBox and its generator.
94
+
If you wish to opt out, pass the `--no-statistics` flag to the generator.
95
+
In Xcode, this is done in the **Arguments** section below the list of targets.
96
+
97
97
### Review and keep generated files
98
98
99
99
Among other files ObjectBox generates a JSON **model file**, by default to `model-<target-name>.json` where `<target-name>` is the name of an Xcode target, e.g. `NotesExample-iOS`.
0 commit comments