Search code examples
iosxcodeios-simulatorxcode-ui-testingxcode12.5

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?


Solution

  • Fixed in Xcode 12.5.1, code generation works again ;)

    enter image description here