Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 UI Debugging Recording. No buildable for testable

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.

like image 263
uucp Avatar asked Aug 17 '15 07:08

uucp


People also ask

How do I run a UI test in Xcode?

If you are making a new app, make sure you select the “Use UI Tests” checkbox when creating a new Xcode project. To add it in an existing project go to the build folder and on the bottom left you will see the plus button. Selecting that will give you a dropdown menu, where you can then select “UI Testing Bundle”.

What is build for testing Xcode?

Description. The Step runs Xcode's xcodebuild command with the build-for-testing option. This builds your app and associated tests so that you can, for example, upload it to a third-party testing service to run your tests on a real device.


2 Answers

Had to change this

  • Here is a picture for the setting that resolved the issue for me.
  • It was set to "None" I chose my target application instead.
  • I had to expand the little sidebar by clicking the button to the right of the selected "wiserIos M" column.
like image 64
Peheje Avatar answered Nov 15 '22 22:11

Peheje


My solution was go to project setting. Set target application to None and then back to original app. And it works

like image 22
Cinoss Avatar answered Nov 15 '22 21:11

Cinoss