Commit 0fcbd8a
Fix membershipExceptions for localized files in synced folders
Xcode uses a `/Localized:` prefix format for membership exceptions
of localized files in synced folders (e.g., `/Localized: Resources/AppShortcuts.strings`),
rather than individual per-language paths (e.g., `Resources/de.lproj/AppShortcuts.strings`).
Previously, XcodeGen generated per-language `.lproj` paths as membership
exceptions, which Xcode silently ignored. This caused localized resources
(`.strings` files inside `.lproj` directories) to remain as members of
targets that should have excluded them via `includes`/`excludes` filters.
This fix detects paths containing `.lproj` directory components and
transforms them into the `/Localized:` variant-group format that Xcode
expects.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8d3d347 commit 0fcbd8a
File tree
2 files changed
+78
-1
lines changed- Sources/XcodeGenKit
- Tests/XcodeGenKitTests
2 files changed
+78
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
| 1494 | + | |
1494 | 1495 | | |
1495 | 1496 | | |
1496 | 1497 | | |
| |||
1514 | 1515 | | |
1515 | 1516 | | |
1516 | 1517 | | |
1517 | | - | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
1518 | 1531 | | |
1519 | 1532 | | |
1520 | 1533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
473 | 537 | | |
474 | 538 | | |
475 | 539 | | |
| |||
0 commit comments