liftoff icon indicating copy to clipboard operation
liftoff copied to clipboard

how to add files into project without adding them into app target or test target

Open caoer opened this issue 8 years ago • 1 comments

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.

caoer avatar Jul 12 '16 01:07 caoer

I found a solution !

  1. Go to /usr/local/Cellar/liftoff/{lastest version}/rubylib/liftoff/
  2. Open the file named project_builder.rb
  3. 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')

Maximelc avatar Jun 15 '17 14:06 Maximelc