XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Cannot exclude files from a target path

Open OmranK opened this issue 2 years ago • 0 comments

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"

OmranK avatar May 09 '23 20:05 OmranK