Commit 84db3b8
authored
Fix compilation with
Adding a resource to a target makes `swift build` try to force-include
Foundation.h when building source files in that target, which breaks if any of
the source files aren't obj-c. To work around this, the resources need to be in
a separate target from the source files.
xcodebuild breaks if a target has zero source files, so add an empty obj-c file
to build as part of this new resource target.swift build (#7588)1 parent 3450711 commit 84db3b8
File tree
4 files changed
+17
-4
lines changed- src/spm
4 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | 424 | | |
427 | 425 | | |
428 | 426 | | |
| |||
433 | 431 | | |
434 | 432 | | |
435 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
436 | 448 | | |
437 | 449 | | |
438 | 450 | | |
| |||
File renamed without changes.
Whitespace-only changes.
0 commit comments