XCode 5 unit testing: starts my app

前端 未结 7 1772
挽巷
挽巷 2020-11-29 23:04

When I run my tests in XCode 5, the main window of my OS X app appears on the screen for a couple of seconds while running the tests. Why? Even if I uncomment all my tests i

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 23:41

    On XCode5, the app does start. This answer shows how to change its delegate when running unit tests so that it exits right away: https://stackoverflow.com/a/20588035/239408

提交回复
热议问题