skip to Main Content

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?

2

Answers


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

    Login or Signup to reply.
  2. Fixed in Xcode 12.5.1, code generation works again 😉

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search