The run destination My Mac is not valid for Running the scheme foo

Getting a compile time error and can’t figure out why

The run destination My Mac is not valid for Running the scheme foo

Can anyone suggest what I need to change in my Xcode settings?