XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

How to add custom type file as sources?

Open Attiv opened this issue 3 years ago • 2 comments

For example, I want to add linphonerc file as source. I set path: linphonerc, but it doesn't work.

Attiv avatar Mar 22 '22 14:03 Attiv

looks like this is not possible right now. The filetypes are classified in resources and sources ( recently did a PR to that file). Maybe a custom version or a modification to pass custom type mappings ( file type/name --> resource/source code) could be created.

hakkurishian avatar Mar 28 '22 08:03 hakkurishian

I think options.fileTypes is what you're after? That lets you customise any file type across the project without doing it in each target source definition.

options:
  fileTypes:
    linphonesrc:
      buildPhase: sources

More info in options and FileTypes https://github.com/yonaskolb/XcodeGen/blob/master/Docs/ProjectSpec.md#filetype

yonaskolb avatar Mar 31 '22 05:03 yonaskolb