Has anyone seen this happen before? I can not run UITests because the button is disabled. I have not found any help online. I have deleted and added a new test target, restarted Xcode and deleted derived data. None of these worked and I have no idea what to try next.
You have to create a new target in your project. Steps: 1) File > New > Target 2) Select in left box: iOS > Test 3) In right box: iOS UI Testing Bundle 4) Run your aplication 5) Record your actions 6) Make assertions
Another possible cause could be that the UI testing target was not build/run successfully.
Go to Product > Test and make sure no errors. You should also see the test cases in the Test Navigator (if you don't see, then it is not recognised).
I had the same issue and finally found a solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With