Commit b14e1e4
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 81be530 commit b14e1e4
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 | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| 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