ITIN application need tax return but tax return need ITIN, is this infinite cycle?

Hi folks.

My wife and my daughter both don't have SSN or ITIN. And I looked up online and found out that I need to apply for ITIN for them. However if I understand correctly, applying a ITIN needs 1040 tax return document and 1040 tax return document generation needs SSN or ITIN.

So is this infinite cycle? how can I get a 1040 tax return document for my wife and daughter if they don't have SSN/ITIN?

 

Thanks