liftoffcli / liftoff

CLI for creating and configuring new Xcode projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

caoer opened this issue · 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.

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')