SwiftUI package do not have CGEventSource

Hi everybody, I created a SwiftUI package on GitHub, but I'm getting an issue with this code:

struct Example: View {
  @State var name = ""
  var body: some View {
    TextField("name", text: $name)
      .keyboardType(.emailAddress)
  }
}

When I'm typing the property keyboardType I get the following message:

This property is defined on CGEventSource, and may not be available in this context

I'm not sure if I'm missing something when creating a GitHub Swift package, can you help me with this issue?

I found the solution on StackOverflow, basically I have to select the build target manually on the top option in Xcode, seems Xcode is not selecting the platforms defined in the Package file.