iOS UI Testing Adding Test Files to Xcode Project


When creating the project

You should check "Include UI Tests" in the project creation dialog.

enter image description here

After creating the project

If you missed checking UI target while creating project, you could always add test target later.


  • While project open go to File -> New -> Target
  • Find iOS UI Testing Bundle

enter image description here