Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying if a file is linked against the target or not #181

Open
buscarini opened this issue Oct 15, 2014 · 6 comments
Open

Allow specifying if a file is linked against the target or not #181

buscarini opened this issue Oct 15, 2014 · 6 comments

Comments

@buscarini
Copy link

I have some template files that I'd like to have added to the target folder structure but that shouldn't be linked against the target. It would be nice if we could override liftoff linkage configuration

@gfontenot
Copy link
Member

I've thought about this, but couldn't figure out a way to do this without seriously complicating the config/iimplementation. Questions for you:

  1. Do you have any suggestions for what you would want this to look like?
  2. Are these files that you need added to Xcode? Or can they be generated on disk without being added to Xcode
  3. What kinds of files are these that you want added to the project but not the target? Can you give me an example so that I can better understand the problem?

@buscarini
Copy link
Author

  1. I don't know YAML much, but how about something like this:

app_target_templates:
objc:
- <%= project_name %>:
- Resources:
- settings.json : no_link
- Scripts:
- archive.sh : no_link

  1. They would be added to Xcode. If they don't need to be added to Xcode I could just use templates in the current version.
  2. They would be files that are resources, or utility scripts. Files that I would like to edit in Xcode but that shouldn't be linked to the target. For example, I have a script for archiving my projects that I'd like to change in Xcode, but it's not to be added to the target.

@bitcrumb
Copy link
Contributor

bitcrumb commented Dec 5, 2014

I'm also in favour of this feature request for the same reasons. I often have some files that I would like to be listed in the project navigator (e.g. Podfile), but that don't need to be linked against any target.

I guess some kind of filename convention should be used, like prefixing it with a certain (unlikely) character? I would suggest:

- <%= project_name %>:
- Resources:
  - !settings.json
  - Scripts:
    - !archive.sh

@marcelofabri
Copy link
Contributor

I'd also like to see this implemented to setup fastlane on all projects.

If we agree on how this should be set on .liftoffrc, I can try to implement this.

UPDATE: Apparently, I can already do that by using the existing template structure (because I don't need the files to be added to Xcode).

@jakecraige
Copy link
Contributor

@marcelofabri Can you elaborate for others how you were able to do this?

@marcelofabri
Copy link
Contributor

I actually haven't tested this, but I figured out it should be the same case as README.me, Gemfile & friends: I only need to add to the templates key.

However, this works for me because I don't need these files to be added to the project structure in Xcode. This is still not supported as far as I know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants