Choose the view and display that select the entities that can be referenced.
Only views with a display of type "Term Reference" are eligible.

but if selected Term reference display
Contextual filter -> entity reference field not working