Ketul Patani
Ketul Patani

Reputation: 101

UITests bridging header file is not getting added in Xcode

I have recently started testing my app with UITesting which was recently introduced by Apple. But the problem is the UITest is not able to use the Header file which I created to use some ObjC libraries. This is causing the UItest to fail. I have already tried manually changing the header file name in Target tab under Build Settings still the same error.

enter image description here

And this is my header file name enter image description here

Changed name of header file which should be used by UITests. enter image description here

My app is building and running fine but the UITests are creating problem. Could you please tell me how do I solve this problem?

Thank You.

Upvotes: 4

Views: 1100

Answers (1)

Robski18
Robski18

Reputation: 306

Choose Pods.debug and Pods.release configuration for the tests target (if currently set to none)

You can find this setting in the "Configurations" section

Good luck! Let me know if this works :-)

EDIT: There is a extensive version of my answer with screenshots here

Upvotes: 2

Related Questions