MobileNativeFoundation / rules_xcodeproj

Bazel rules for generating Xcode projects.
MIT License
528 stars 86 forks source link

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

Closed brentleyjones closed 1 month ago

brentleyjones commented 1 month ago

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.