liftoff
liftoff copied to clipboard
how to add files into project without adding them into app target or test target
I have a few xcconfig files from https://github.com/jspahrsummers/xcconfigs. I want to add them into project but not have them added into app target or test target. How can I do that?
looks like files under app_target_templates
will be added into app target and files under templates
won't be added into the project.
I found a solution !
- Go to
/usr/local/Cellar/liftoff/{lastest version}/rubylib/liftoff/
- Open the file named
project_builder.rb
- Find the function named
resource_file
(in my case line 90) and add your extension like this :
- name.end_with?('xcassets', 'bundle', 'xib', 'storyboard', '{Your Extension}')
In your case, you just need to do this :
- name.end_with?('xcassets', 'bundle', 'xib', 'storyboard', 'xcconfig')