Reputation: 9742
If have two targets, A and B… And say you give target A, a linked binary to a library, something like CoreLocation...
And then if you add target A to target B's "target dependencies", does that mean target B will automatically have CoreLocation?
I have often been confused with what adding things to target dependencies does, when to do it, why, etc.
Upvotes: 1
Views: 491
Reputation: 22707
No, it does not affect what is linked to a target. Adding A to B's dependencies means that if you tell Xcode to build B, it will first build A. The idea is that, for example, if A builds a library that is used in an app built by B, you probably want to have the most up to date version of the library before you build the app.
Upvotes: 2