BUILD files are added even when using BUILD.bazel files
See https://github.com/dflems/bazel-repro/tree/master/tulsi-local-repo for an example project.
When using BUILD.bazel files (i.e. package/BUILD.bazel), Tulsi adds both package/BUILD and package/BUILD.bazel as file references in the Xcodeproj even though only the BUILD.bazel file exists.
Taking a quick look into this, we forcibly add a BUILD file as an additionalFilePath for every package in your project when you create it. We can probably remove this altogether or check for file existence before we add it.
@DavidGoldman I am sure you might have figured this out, but for everyone's reference -- one workaround for this issue is...
- Open
.tulsigenfile(s) underConfigsdirectory in the Tulsi project. - Rename files from
BUILDtoBUILD.bazelinadditionalFilePathssection. - And then generate the Xcode project from GUI or CLI.
As an alternative workaround you can modify the two codepaths I listed above and replace"BUILD" with "BUILD.bazel" or perhaps this could be some Tulsi config setting.
Tulsi needs to support the use of either BUILD or BUILD.bazel, so it's more than replacing BUILD with BUILD.bazel.
Thanks for submitting this issue but this tool is being deprecated. Please checkout rules_xcodeproj for a more complete and maintained Xcode integration.