Search code examples
iosxcodexcode-ui-testingmach

iOS UI Tests Linker Error


I'm trying to run some UI tests for my iOS app. I was successfully able to record my UI tests, but when running them, I get a linker error: enter image description here

I have a UI Testing Target added to my project, and my UI Test file has been added to that target.

I've already been able to write and run several Unit Tests without a problem.

Anyone know where I should look to solve this, or have a guess what the problem may be?

EDIT: The full log output shows that the UI test file can't import an SDK that my target app relies on.


Solution

  • For some reason, when I created my UITest target, a linker flag was added in the target that shouldn't have been there (-lMySDK).

    Removing that flag resolved the linker error.