Xcode: TEST vs DEBUG preprocessor macros

后端 未结 11 912
余生分开走
余生分开走 2020-11-28 06:24

When creating a new project with unit tests, Xcode sets the build configuration to Debug for the Test scheme (same for the Run scheme).

Should I differentiate betwee

11条回答
  •  庸人自扰
    2020-11-28 06:52

    On iOS, [UIApplication sharedApplication] will return nil when a unit test is running.

提交回复
热议问题