开发者

Effect of mutually dependent targets in Xcode 4?

开发者 https://www.devze.com 2023-04-02 12:16 出处:网络
In my project, I have my main target (The one with all my product code). Halfway through the project I created another target to hold unit tests.

In my project, I have my main target (The one with all my product code). Halfway through the project I created another target to hold unit tests.

I have made my main target dependent on the unit tests target, so that whenever I build my project, I run the unit tests automatically.

Should my unit tests target also be dependent on my main target? (Currently I have set it as dependent).

What is the effect of each target 开发者_如何学Cbeing dependent on each other?


Should my unit tests target also be dependent on my main target?

no. that's a circular dependency.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号