Commit 13df787
authored
Add visionOS to Package.swift to emit useful compilation errors (#398)
### Motivation
We have provision for emitting a useful compilation error when trying to
link the _generator_ to an application on darwin platforms, e.g. iOS,
tvOS, watchOS. To support this, we add those platforms to the
Package.swift so that the code at least tries to compile and then we can
emit the `#error`. This list does not currently include visionOS so
users will not get the same useful compilation error.
### Modifications
Add visionOS to the platforms in Package.swift. While there, also add
this to the platforms in the Package.swift for the client used in the
tutorial.
### Result
When compiling for visionOS and trying to link the generator, a useful
compiler error will be emitted.
### Test Plan
Manual.1 parent 23073d4 commit 13df787
File tree
3 files changed
+9
-9
lines changed- Sources/swift-openapi-generator/Documentation.docc
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments