madcat
madcat

Reputation: 322

xcode ui testing Recoding fails to generate code

I created a new iOS SwiftUI app and added following ContenView

struct ContentView: View {
    var body: some View {
        VStack {
            Text("Hello, world!")
                .padding()
            Button("Press Me", action: {
                return print("button pressed")
            })
        }
    }
}

I tried to add an UI Test, where I check if the button is pressed.

What ever I do, after I press the recording button in the test no code is generated within the test function.

Every example have no issue at this point.

The record button is not greyed out an working.

Any Ideas what I have missed?

Upvotes: 2

Views: 376

Answers (2)

Wasim
Wasim

Reputation: 1140

Fixed in Xcode 12.5.1, code generation works again ;)

enter image description here

Upvotes: 2

Alex Baranov
Alex Baranov

Reputation: 11

UI test recording is not working in Xcode 12.5, try to install 12.4. it still works there.

Upvotes: 1

Related Questions