yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
7.01k stars 818 forks source link

Cannot exclude files from a target path #1358

Open OmranK opened 1 year ago

OmranK commented 1 year ago

Trying to exclude some .m files in a directory from being targeted, as I need to specifically declare them one by one and add the right compiler flags to them. When I include them in the excludes list, they do not get excluded. .c files do however get excluded..

Isn't excluded:

 sources:
   - path: "MPOS"
      excludes:
          - "/../../aFile.m"

Is Excluded:

 sources:
   - path: "MPOS"
      excludes:
                - "/../../anotherFile.c"

When built, anotherFile.c has the correct compiler flags but aFile.m doesn't:

- path: "/../../aFile.m"
   compilerFlags: "-fno-objc-arc -w"
- path: "/../../anotherFile.c"
   compilerFlags: "-fno-objc-arc -w"