Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Represent structured resources as files instead of folders in Xcode #3098

Conversation

brentleyjones
Copy link
Contributor

The current way matches how Xcode bundles structured resources, and we did it this way for BwX mode. But representing these resources as folders has a few downsides:

  1. More files can appear in Xcode than are actually referenced as inputs, because Bazel works on the level of files, not directories
  2. The work to translate the files to folder paths isn’t free
  3. The translation of files to folder paths broke with rules_apple’s recent runfiles support

In a future change I’ll remove all of the code around .isFolder, since folder-type files can go down the file_path path.

The current way matches how Xcode bundles structured resources, and we did it this way for BwX mode. But representing these resources as folders has a few downsides:

1. More files can appear in Xcode than are actually referenced as inputs, because Bazel works on the level of files, not directories
2. The work to translate the files to folder paths isn’t free
3. The translation of files to folder paths broke with rules_apple’s recent runfiles support

In a future change I’ll remove all of the code around `.isFolder`, since folder-type files can go down the `file_path` path.

Signed-off-by: Brentley Jones <[email protected]>
@brentleyjones brentleyjones force-pushed the bj/represent-strucutred-resources-as-files-instead-of-folder-in-Xcode branch from 505e670 to 4f5c797 Compare October 28, 2024 17:41
@brentleyjones brentleyjones merged commit 393633e into main Oct 28, 2024
16 checks passed
@brentleyjones brentleyjones deleted the bj/represent-strucutred-resources-as-files-instead-of-folder-in-Xcode branch October 28, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants