Unit Testing in Xcode, does it run the app?

后端 未结 10 996
陌清茗
陌清茗 2020-11-29 21:54

I\'m running into a strange problem that I haven\'t run into before.

When you do cmd+U to run your Unit Tests (OCUnit for example) does it actually call the main.m,

10条回答
  •  情书的邮戳
    2020-11-29 22:00

    Yes, your test target will have a target dependency to the app target, so the app target will be built when you press Cmd+U or Cmd+Shift+U.

提交回复
热议问题