Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to add a file to multiple targets?

See original GitHub issue

I’m developing a script to generate boilerplate code to my project. I have two targets (ag: Debug and Production) and I need to add files to these ones only. Right now we have the option to specify one target or add to all. Is it possible change the target to accept an array?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

bivanovcommented, May 28, 2018

@kronenthaler, great, very grateful for this update! Thanks a lot!

kronenthalercommented, May 27, 2018

i added the support for multiple targets on version 2.4.0.

You can pass a list to target_name as: target_name=['Debug', 'Production']

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add Files and Select Multiple Targets in Xcode - Stack Overflow
The usual way is to have targets that don't duplicate each others files. E.g. some targets are libraries that are used by some...
Read more >
Parallel file copy from single source to multiple targets?
For single files you can use tee to copy to multiple places: ... Instead, you can just add the exes from the UnxUtils...
Read more >
Multiple Targets (GNU make)
When an explicit rule has multiple targets they can be treated in one of two possible ways: as independent targets or as grouped...
Read more >
Building and Publishing Multiple Targets
Use the following steps if you want to quickly build and publish multiple targets using an option in the Builds window pane. The...
Read more >
Advice on the use of uVision with multiple targets - Keil forum
Another option could be to make some batch files that replace just the main and scatter loading files and keep everything the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found