Reputation: 429
Xcode prompts "No buildable for testable" when the record button is clicked.
In my Xcode project, targetting for iOS, there is an Objective-C testing target and a Swift testing target, both for UI Testing. As guided by the Apple UITestingGuidelines, I moved the insertion point to the testExample function and clicked the record button. Immediately after the button is released, there is a pop-up alert with message "No buildable for testable". I've already tried restart the project several times but it did not work.
Upvotes: 12
Views: 2034
Reputation: 14234
Upvotes: 16
Reputation: 340
My solution was go to project setting. Set target application to None and then back to original app. And it works
Upvotes: 21
Reputation: 51
I've had the same problem. My solution was to delete all testing targets and simply recreate them. Afterwards ensure your testcase has the correct target membership. Now it should work.
Upvotes: 3